3

Devnexus 2022 - What's Looming in Java The Why and What of Project Loom - Venkat...

 1 year ago
source link: https://www.youtube.com/watch?v=y-SXxp1Kx_Y
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

2 Comments

Sort by
Add a comment...

Threading: • Parallel vs Concurrent 1:30 • Parallel vs Asynchronous (non-blocking) 3:30

Threads: • Threads are lightweight 5:50 • But, "lightweight" is relative 7:00 • How many threads can/should you create? 7:30 • Depends on the amount of memory and number of cores 10:00 Multi-Threading, eh?: • Sequential execution 16:00 • Existing programming model: threads tied to tasks (for the most part) 16:18 • What if a task is going to take some time? 16:18 • Create more threads? 16:18

Continuation: • Subroutines 23:45 • Coroutines 24:00 • Continuations are data structures that can remember the state of a previous call and can continue from where it left off • Useful for building conversational state • run • yield • isDone

Virtual-Threads of Java: 30:30 • Super lightweight threads • Managed by the JVM and not by the O/S 31:00 • When a virtual thread blocks, the task waits, but not the underlying thread 32:40 • Revisiting the thread limitations • Using fibers/virtual threads 37:10

Summary: 49:44 • Where does it make sense to use virtual threads? 49:44 discussions

Read more


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK