Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
マルチスレッドがこの状況に理想的であることは知っていますが、この状況が適用できる例はありますか?
はい、単一のスレッドから一度に複数のクライアントにサービスを提供できます。これは通常、select() または poll() ソケット関数を使用して実装されます。
シングルスレッドの select() ベースのポーリング サーバーは、マルチスレッド サーバーよりも少ないシステム リソースを使用できます。