TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: Java 21 virtual threads concurrency model

1 pointsby deepakarora3over 1 year ago
In Java 21, virtual threads are mounted / unmounted on carrier threads for execution and there usually are multiple carrier threads in the JVM. This still remains a multithreaded concurrency model. Is it not possible to provide an option wherein a parent virtual thread and all its child virtual threads be mounted on the same carrier thread? In other words, carrier thread affinity. This would result in a simple single threaded concurrency model (and one could have gotten away from using locks and synchronization). Thanks.

no comments

no comments