Re:Threads, Threads, and More Threads
by astrange on Tuesday March 22, 2022 @09:30PM
(#30773816)
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.
Of course, there's a lot of tradeoffs between that and just keeping an idle thread around.