Hi,
I've written a async server app. This app start by connecting to a
client and then send some data (BeginSend). When the data is sent, the
server is starting to listen for incomming data. (BeginRecieve). In the
receive callback I always call BeginRecieve again to keep listen for
more data. The server is continualy listening, and from time to time
sending (but if it is sending more data when there is already a
listening socket, I don't run BeginReceive again). I have one socket
for each client. This works very well but I am very confused about the
Thread-count showing in Windows-task-manager. I would expect that if
the server is Connected to 60 clients, it would also be 60 threads,
because I am listening for incomme all the time. What suprise me is
that the thread count is about 30?? How come? Can anybody explain?