最後の 2 つのコード行の間で何が起こっているか教えてください。
// Creating Server and Client threads
pthread_create(&serverThread, NULL, (void* (*)(void*))&Server,(void *)0);
pthread_create(&clientThread, NULL, (void* (*)(void*))&Client,(void *)1);
// Wait until serverThread exits
pthread_join( serverThread, NULL);
// Wait until clientThread exits
pthread_join( clientThread, NULL);
同時に待ちたい。2 つのスレッドのいずれかが終了/終了した場合はどうなりますか? サーバーが無限ループで実行され続けたらどうなるでしょうか?