TCP connection for multiThread

I have question. How can I do that ?

serverSocket = new ServerSocket(9990); 
 while(true) {
            Socket socket = null;
                socket = serverSocket.accept();

How can connect lots of tcp connection if tcp is point to point protocol? Or it would be because I create a new thread and if that true How tcp connection alternate between two thread or more ?

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.