Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

A Practical Approach to Java Memory Model

Devoxx via YouTube

Overview

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Explore the intricacies of the Java Memory Model in this 46-minute conference talk by Andrzej Czarny at Devoxx. Delve into the complexities of multi-thread programming, focusing on how threads interact through memory and the allowed behaviors in concurrent execution. Learn about mutual exclusion, the synchronized keyword, and the often-overlooked aspect of memory visibility. Gain practical insights through numerous examples and discover how to validate results using the OpenJDK Java Concurrency Stress tests framework (JCStress). Cover topics such as compiler optimization, hardware considerations, strong memory models, creating custom tests, reordering, general memory models, synchronization, threadsafe immutable objects, static limits, and volatile keywords.

Syllabus

Introduction
Agenda
Compiler optimization
Textbook example
Demo
Hardware
Strong Memory Model
JZStress
Creating your own tests
Only reordering test
General memory model
What is Memory Model
Order
Synchronization
Threadsafe immutable objects
Static limit
Escape
Volatile

Taught by

Devoxx

Reviews

Start your review of A Practical Approach to Java Memory Model

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.