ASP.NET IO thread pool and asynchronous sockets

N

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
 
B

bruce barker

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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,813
Latest member
lawrwtwinkle111

Latest Threads

Top