Parallel TCP server with threads