Asynchronous operations

  • Thread starter Thread starter Julian Hershel
  • Start date Start date
J

Julian Hershel

Reading about asynchronous programming
(ms-help://MS.NETFrameworkSDK/cpguidenf/html/cpconasynchronousdesignpatterno
verview.htm) I could not clarify some doubts. Hope you can help me.

1) Are asynchronous programming and multithreaded programming two different
pictures? As I read the help topic above it is not clear to me if the design
pattern opens a new thread or not to run the methods asynchronously.

2) One unique thread can run methods asynchronously?

Thank you.

Julian
 
Julian,
1) Are asynchronous programming and multithreaded programming two different
pictures? As I read the help topic above it is not clear to me if the design
pattern opens a new thread or not to run the methods asynchronously.
Asynchronous programming uses a thread from the thread pool for each
request. The thread pool only uses about 25 threads (I understand the number
may be processor & OS specific), so no more then about 25 asynchronous
requests can be handled simultaneously. Any request over the 25th
asynchronous requests would wait for a free thread in the thread pool. I
also understand that IO asynchronous requests may have their own "thread
pool", however I do not have specifics on that...
2) One unique thread can run methods asynchronously?
A single thread in the thread pool may handle multiple asynchronous requests
consecutively.

Hope this helps
Jay
 
Back
Top