3 ms·
If all the threads are idle then you could exit all of them; this makes sense if they're using async system calls. The OS would just create a new thread in the
by astrange 5y ago
If all the threads are idle then you could exit all of them; this makes sense if they're using async system calls. The OS would just create a new thread in the process to resume it again.
Of course, there's a lot of tradeoffs between that and just keeping an idle thread around.