PC Review


Reply
Thread Tools Rating: Thread Rating: 3 votes, 2.33 average.

ASP.NET IO thread pool and asynchronous sockets

 
 
Navin Mishra
Guest
Posts: n/a
 
      13th Apr 2007
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



 
Reply With Quote
 
 
 
 
bruce barker
Guest
Posts: n/a
 
      13th Apr 2007
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)



Navin Mishra wrote:
> 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
>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Asynchronous Socket programing and Thread Pool Manish Microsoft C# .NET 1 15th Jun 2010 01:40 AM
ASP.NET IO thread pool and asynchronous sockets Navin Mishra Microsoft ASP .NET 1 13th Apr 2007 06:23 PM
Asynchronous delegate vs thread pool & thread =?Utf-8?B?Rmx1eHJheQ==?= Microsoft Dot NET Framework 3 21st Mar 2007 03:32 AM
Threads with Sockets in them? or Asynchronous Sockets? Ronodev.Sen@gmail.com Microsoft C# .NET 2 22nd Feb 2006 07:39 PM
Asynchronous Execution and Thread Pool in a Server Scenario dsitton@pansw.com Microsoft Dot NET Framework 1 28th Dec 2004 04:37 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:24 AM.