5

Java Virtual Threads - How Virtual Threads Work, Scheduling, Cooperation and Mor...

 1 year ago
source link: https://www.youtube.com/watch?v=nnpeH92QpeY
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

How Virtual Threads Work, Scheduling, Cooperation and More

Will there be a spring boot course? (it would be really interesting in the form of a full-fledged project with ui)

probably a dumb question but... when you submit something to a pool of threads like a ForkJoinPool, you are actually creating a "Task" which is going to be queued and handled by a thread when available, so in practice I don't see any advantage of using virtual threads since the "task" should be already lightweight, and the blocking should be also semantic, you don't block the thread of a pool, you just block a task. So long I don't use Java that when you wrote "var" I thought you were confusing Scala with Java xD

update: now I saw that you showed that virtual threads are implemented with a fork join pool o_O so anything that can be implemented with virtual threads can be imlemented with a fork join pool with essentially the same behaviour and semantics in older version of java... is that correct.

Read more


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK