473,811 Members | 3,220 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Asynchronous processing

Hello All,

I would like to know how I can process a non-CPU bound operation in an
asynchronous fashion so that the original thread is returned to the thread
pool? Fritz Onion wrote a very interesting article on asynchronous handlers
but handlers may not be suitable for my requirement.

http://msdn.microsoft.com/msdnmag/is...g/default.aspx

Does anyone know of articles that discuss how to perform a lengthy operation
in an asynchronous fashion?

Thanks All!!
Nov 22 '06 #1
2 1340
in your case you want to create a manager thread. when a request wants to
perform an async operation, it queues the request to the manager thread
which stats the operation. when the async operation completes, the mananger
thread starts a pool thread toprocess the response.

-- bruce (sqlwork.com)

"Diffident" <Di*******@disc ussions.microso ft.comwrote in message
news:6A******** *************** ***********@mic rosoft.com...
Hello All,

I would like to know how I can process a non-CPU bound operation in an
asynchronous fashion so that the original thread is returned to the thread
pool? Fritz Onion wrote a very interesting article on asynchronous
handlers
but handlers may not be suitable for my requirement.

http://msdn.microsoft.com/msdnmag/is...g/default.aspx

Does anyone know of articles that discuss how to perform a lengthy
operation
in an asynchronous fashion?

Thanks All!!

Nov 22 '06 #2
Would you be able to point to an example code or reference articles? If not,
what API should I be using to create threads?

Thanks a lot!!

"bruce barker (sqlwork.com)" wrote:
in your case you want to create a manager thread. when a request wants to
perform an async operation, it queues the request to the manager thread
which stats the operation. when the async operation completes, the mananger
thread starts a pool thread toprocess the response.

-- bruce (sqlwork.com)

"Diffident" <Di*******@disc ussions.microso ft.comwrote in message
news:6A******** *************** ***********@mic rosoft.com...
Hello All,

I would like to know how I can process a non-CPU bound operation in an
asynchronous fashion so that the original thread is returned to the thread
pool? Fritz Onion wrote a very interesting article on asynchronous
handlers
but handlers may not be suitable for my requirement.

http://msdn.microsoft.com/msdnmag/is...g/default.aspx

Does anyone know of articles that discuss how to perform a lengthy
operation
in an asynchronous fashion?

Thanks All!!


Nov 22 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
3488
by: ... | last post by:
Does anyone know a good tutorial on asynchronous programming in .net AsyncCallback And IASyncResult are driving me crazy. And the msdn documentation is not really helpful on this topic I appreciate any recommendation.
1
2031
by: hs | last post by:
H I am using the articles by Matt Powell about server side asynchronous web methods (as well as the client side article) However i dont see any improvements to the speed of my application. I'm experiencing the slow speed on the server side. I read that using a delegate to call an asynchronous metho would be ineffecient and maybe causing the problem. Can someone give me some advice on wha i can do to improve the speed without doing a...
9
8679
by: Michael Lindsey | last post by:
I need to write a server app to send images to client GUIs that are outside of the server's domain. The client will have the file system path to the image but can not access the file system. I am trying to decide if I should use remoting vs. writing a server that uses networkstreams. I have read that networkstreams\tcp programming should be faster than remoting and is a better choice for what I am doing but that it is difficult to code.
1
1795
by: MSDN | last post by:
Does anyone know how to do this with a readline statement or equivalent method? Thanks in advance. Chris
7
9719
by: Siv | last post by:
Hi, I have a stored procedure that I want to execute and then wait in a loop showing a timer whilst it completes and then carry on once I get notification that it has completed. The main reason for this being to stop the user thinking the application has frozen when in fact it is just waiting for a long SP to complete. Another reason for doing it like this is that I also have had a problem in the past where the SP takes longer than the...
1
2880
by: dba123 | last post by:
I need to perform Asynchronous Inserts using DAAB. So far I have a method which does an insert but how can I do this Asyncronously so that it does not affect the load on our public production website? This question is wide open but make sure you give me some ideas in context with DAAB syntax. Some thoughts are threading, ATLAS, etc. but I have no clue how to even approach an Asynchronous Insert or any techniques at this point. Also, I...
2
4116
by: archana | last post by:
Hi all, I am processing asynchronous web request with setting timeout using RegisterWaitForSingleObject. On beginwebrequest i am sending address of one callback which i want to execute when asynchronous web request complete. My doubt is if timeout error occured while processing asynchronous webrquest, will call back i set on beginwebreqest gets executed or not.
0
1760
by: Bishoy George | last post by:
Hi, I have a asp.net 2.0 web application. I want to implement the asynchronous model through http handler in web.config ------------------------------------------------------------------------------------------------------------------------- My web.config file: ---------------------
4
3609
by: Engineerik | last post by:
I am trying to create a socket server which will listen for connections from multiple clients and call subroutines in a Fortran DLL and pass the results back to the client. The asynchronous socket client and asynchronous socket server example code provided in the .NET framework developers guide is a great start but I have not dealt with sockets before and I am struggling with something. From what I can tell the sample server code ...
4
4079
by: Morgan Cheng | last post by:
Since ASP.NET 2.0, asynchronous web service client can be implemented with event-based pattern, instead of original BeginXXX/EndXXX pattern. However, I didn't find any material about event-based server side asynchronous web service. So, we can only implement asynchronous webmethod with BeginXXX/EndXXX pattern, right? I don't why ASP.NET 2.0 don't provide event-based server side pattern.
0
9605
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10651
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10136
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9208
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7671
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6893
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5555
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5693
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3868
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.