Overview
Coursera Spring Sale
40% Off Coursera Plus Annual!
Grab it
Explore the intricate world of JVM concurrency mechanisms in this comprehensive conference talk that delves deep into the implementation details of locks, monitors, and atomic operations. Learn how the JVM provides multiple approaches to implementing mutual exclusion in multithreaded applications, including synchronized blocks, ReentrantLock, and Atomic variables, each with distinct advantages and trade-offs that significantly impact performance and scalability. Discover the inner workings of adaptive locking, understand what happens when threads are parked, and uncover the mysteries of futex and how Atomic variables function as locks at the hardware level. Gain insights into advanced concepts such as reentrance, fairness, and monitor deflation while receiving practical guidance on selecting the appropriate mechanism for specific scenarios and tracing their behavior. The presentation also introduces lock-free programming concepts, providing a comprehensive foundation for understanding JVM concurrency patterns and their real-world applications in high-performance multithreaded systems.
Syllabus
Locks, monitors and atomics in JVM • Jarosław Pałka, Andrzej Grzesik • Devoxx Poland 2024
Taught by
Devoxx Poland