I have setup a simple TCPListener and TCPClient that runs in a background thread on a server app. It works fine and connects correctly to clients and fetches messages. I wish to make this multithreaded so that as each client connects a new thread is created rather than having to wait for the single background thread to finish and process the next connection request.

I have tried several ways to do this and always wind up with a vicious loop of thread creation and no processing.

I would greatly appreciate a pointer to an article or snippet that will get me moving in a positive direction again.

Thx for your help

Archie