Thanks for your reply.
But I don't think that the problems are very similar.
The ThreadedFortuneServer, like the suggests uses threads, but in a different manner. For each new connection one new thread is created; the client request is answered and the thread terminates its execution.
Now, what I want is something like this:
One list of threads, that when there aren't any requests to process are sleeping (qwaitcondition). When a new request arrives one of the threads is awaken. The request is processed and the thread goes to sleep again.





Reply With Quote
Bookmarks