Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> 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



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: