Thanks for answering.
1. I have a queue of tasks, a socket is giving me;
2. I would like to process these tasks 'n' processes at a time;
3. Always 'n' processes should be active and running;
4. Until the end of the queue has been reached.
I am thinking of a 'scalable' way and use more clients to process the tasks queue.
TheMagician