Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library
← Back to context

Comment by za3faran

19 hours ago

Java's virtual threads are M:N.

2 comments

za3faran

Reply

ackfoobar  18 hours ago

>> Preemptive scheduling plus M:N mapping

AFAIK, in the current implementation, Java's virtual threads yields only when they block (cooperative). But the spec allows a JVM to implement them as preemptive.

  • gf000  12 hours ago

    Well, they do only yield on block and whatnot, but that's very much different from adding manual async/await keywords, I would say.

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities