public void run() {
while (running) {
採用Thread Pool...XD
// Allocate a new worker thread
MasterSlaveWorkerThread workerThread = createWorkerThread();
// Accept the next incoming connection from the server socket
...
Socket socket = acceptSocket();
workerThread.assign(socket);
}
..
}
沒原始碼沒真相...XD