Re:Threads, Threads, and More Threads
by jayd16 on Tuesday March 22, 2022 @08:17PM
(#30773308)
All perfectly valid but I think you're letting perfect be the enemy of good here. Even if your app can be preempted, green threading is still useful.
[ Parent
| on HN ]
Re:Threads, Threads, and More Threads
by colanderman on Tuesday March 22, 2022 @08:30PM
(#30773396)
I don't disagree.
But green threading doesn't address the OP's issue of "too many threads": a process using green threads needs to spawn one thread per CPU if it plans to use the CPU's full power.
On say, a 16-core system like the OP's, you're back to 16 threads per process -- on average, more than the OP was complaining about (15).