Overview
Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
Discover how JDK-24's virtual thread improvement dramatically increases Java application performance in this 14-minute tutorial. Learn about the breakthrough that allows virtual threads to use synchronized methods and blocks without pinning to carrier threads, resulting in remarkable speed improvements—from 32 seconds to just 0.5 seconds with a simple upgrade. Explore the synchronized keyword's inner workings, understand the previous pinning problem that limited JDK-21's performance, and see practical demonstrations showing up to 70x performance gains. Follow along with clear explanations using a restaurant analogy, see how to enable virtual threads in Spring Boot applications, and review real benchmarks showing a Spring app improving from 21 seconds to 2.3 seconds. Perfect for developers building high-throughput web applications that perform blocking operations like database writes or service calls. Access code examples for both Java and Spring implementations to implement these improvements in your own projects.
Syllabus
00:00 Introduction
01:15 Understanding the synchronized keyword
03:20 The virtual thread pinning problem
05:10 The restaurant analogy
07:25 Java example demonstration
10:45 Spring Boot example setup
13:30 Benchmark results
15:20 Why this matters for your applications
16:45 Conclusion
Taught by
Dan Vega