Last post Jul 26, 2008 01:42 AM by codavid
Jul 17, 2008 09:12 AM|codavid|LINK
I have recently read an article
Use Threads and Build Asynchronous Handlers in Your Server-Side Web Code. In the article, the author said that if you want to create a asynchronous page/request handler, you have to create a new thread yourself. If you just use the BeginInvoke() method
that a delegate provides, the thread that your delegate created is also drawn from the thread pool that your web site use. I just wonder why the threads are drawn from the same pool? How does the BeginInvoke() method know from which pool the thread should
be drawn? And why if you create a thread manually, it will not draw thread from that pool?
Jul 21, 2008 05:05 AM|Zhao Ji Ma - MSFT|LINK
Jul 26, 2008 01:42 AM|codavid|LINK
Thanks for replying. So, do you mean that, for a normal .net app, not a asp.net one, if I use the BeginInvok() method, it will also draw a thread from the thread pool? If this is true, does this means every .net app are associated with a thread pool, no
matter you want or not?