Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
papercrane
2y ago
0 comments
Share
Currently virtual threads aren't a good match if you have a CPU heavy workload. The scheduler isn't fair and if your code doesn't enter into any blocking code it won't be unmounted from the carrier thread.
0 comments
default
newest
oldest
yankput
2y ago
Ahh. It makes sense. But it’s much better fit for file io/sockets/db.
YeBanKo
2y ago
Why would you use virtual threads for CPU heavy loads?
kelnos
2y ago
You wouldn't. The GP was illustrating a situation where virtual threads are not a good substitute for native threads.
j
/
k
navigate · click thread line to collapse