3 ms·
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.
by jayd16 5y ago
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.
- colanderman 5y agoI 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).