I know multithreading is ideal for this situation, but would there be any instance of where this situation could be applicable?
Asked
Active
Viewed 85 times
-1
-
Explain what you mean by "concurrency" in this context. – Jim Mischel Mar 19 '14 at 19:50
-
Concurrency on a server application. Ideally a server would wait for a client request and create a child thread for that request, but would there be a case to where a single thread listen be useful? (sorry I'm not sure if I worded that right) – user3438529 Mar 19 '14 at 19:54
1 Answers
0
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.

Deque
- 301
- 2
- 5