3 ms·
> I want to fully utilize every CPU and every core I have, why do I want green/virtual threads again? If your task is CPU bound, then virtual threads don't gai
by okeuro49 3y ago
> I want to fully utilize every CPU and every core I have, why do I want green/virtual threads again?
If your task is CPU bound, then virtual threads don't gain you anything.
On the other hand, if your task is IO bound, e.g. for a webserver, virtual threads make it trivial to spin up a new thread per request, for massive workloads.
https://en.m.wikipedia.org/wiki/C10k_problem https://en.m.wikipedia.org/wiki/C10k_problem