Timeline for TCP server in C++
Current License: CC BY-SA 4.0
3 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Oct 24, 2022 at 20:22 | comment | added | G. Sliepen |
@MartinSand Because it's calling select() in that loop, which puts the thread to sleep until there is activity on a filedescriptor.
|
|
Oct 24, 2022 at 19:34 | comment | added | Martin Sand |
Oh, the last statement caught my attention. Let's put performance considerations aside for a moment, wouldn't the part start_listening() nearly exhaust a core (while true) if you didn't put it to sleep?
|
|
Oct 22, 2022 at 18:04 | history | answered | G. Sliepen | CC BY-SA 4.0 |