Quote Originally Posted by yogeshgokul View Post
Have you seen the ThreadedFortuneServer qt example. I think this is very similar.
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.