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
@elephant742 Жыл бұрын
35:03 "Compiler knows what I mean and not what I type". 1 year later, GenAI says Hi ! Impressive talk Venkat. Loved it.
@elliotbarlas2 жыл бұрын
Best explanation of parallelism vs concurrency, hands down. The walking, talking, drinking analogy is brilliant!
@hoki8296 Жыл бұрын
Oh god. I am really happy to know this video. Really well explained.
@nguyenquan4836 Жыл бұрын
Super explained
@IvanRandomDude2 жыл бұрын
Will Loom make reactive stack obsolete then? They created reactive Spring in order to have non-blocking web stack. But now, if we can accomplish the same thing imperative style then I assume we can have "normal" Spring that is non-blocking.
@adambickford87202 жыл бұрын
Sure, in another 5 years you'll be able to make simple non-blocking calls. Any kind of aggregation will still be a good old java concurrency cluster fuck.
@sanjeetsingh47432 жыл бұрын
The king is back
@dc0cc2 жыл бұрын
Great presentation & presenter!!
@sivaa12 Жыл бұрын
could you please tell me how many threads are there in a core
@luisdanielmesa Жыл бұрын
2
@adambickford87202 жыл бұрын
"Moving towards async?" We've been there for almost a decade and in another ~5 years java will be ready... and by 'ready' i mean punt us back to Exceptions like it's the 1900s. Can't wait.