News for hackers. Stuff that matters.
Re:Java 21 makes me like Java again by okeuro49 on Sunday September 17, 2023 @10:05AM (#37545198)
> 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

There are no comments on this comment yet.