6. The Server if ( (client_socket=accept(server_socket, (struct sockaddr *)&cad, &alen)) < 0) { printf("accept failed"); exit (1); } pthread_create(&tid, NULL, serverthread, (void*)client_socket ); While(1){ } accept connection from client run a thread to process