문제

I know multithreading is ideal for this situation, but would there be any instance of where this situation could be applicable?

도움이 되었습니까?

해결책

Yes you could be serving multiple clients at once from a single thread. This is typically implemented using the select() or poll() socket functions.

A single threaded select() based polling server can use less system resources than a multi-threaded server.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top