Discussion:
ASP.NET IO thread pool and asynchronous sockets
(too old to reply)
Navin Mishra
2007-04-13 15:57:05 UTC
Permalink
Hi,

I've an ASP.NET web service that consumes other web services as well as
sends data to client using TCP blocking sockets on a custom thread pool
threads. If I use asynchronous sockets to send data to clients, would it use
threads from ASP.NET IO thread pool ? Is it a good idea ? Or could it
potentially exhaust all threads from IO thread pool and cause problems for
web service to access other web services ?

Thanks in advance and regards

Navin
bruce barker
2007-04-13 17:23:42 UTC
Permalink
async i/o is done on the calling thread. its basically a non-blocking
i/o. you will control which thread is used by which thread makes the
async call. for example you would not want to use the web service thread
unless your thread blocks waiting for completion (as the thread may be
destroyed before completion).

you probably want to use a pool and decide what to do when the pool is
exhausted.

-- bruce (sqlwork.com)
Post by Navin Mishra
Hi,
I've an ASP.NET web service that consumes other web services as well as
sends data to client using TCP blocking sockets on a custom thread pool
threads. If I use asynchronous sockets to send data to clients, would it use
threads from ASP.NET IO thread pool ? Is it a good idea ? Or could it
potentially exhaust all threads from IO thread pool and cause problems for
web service to access other web services ?
Thanks in advance and regards
Navin
Loading...