Process/Thread VS connections (socket)
sockfd = accept();
if the server use fork/ pthread_create, then the process/thread : socket = 1:1; fork is an expensive cost, use the pthread.
if (fork() == 0){
deal(sockfd);
}
if use the IO multiplexing
epoll(fdsets[sockfd])
it can use less threads to deal with these sockes . process/thread : socket = 1 : N