Controlling number of worker threads when using asynchronous socke

G

Guest

If I am writing the server side of a client-server application using C/C++
the most scalable solution to handle requests is to use the I/O completion
port model.
In C# I discovered that asynchronous sockets use the I/O completion port
model underneath. However, I do I control how many "worker" threads are used
to service the request. I do not want the server side application spinning a
thread for every request.

Thanks,

Oldman
 
G

Guest

You can use a threadpool and new threads will only be created when there are
no available threads. That would be my first shot.

---

Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************
 

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

Top