The Java Memory Model - The Basics
The Java Memory Model specifies where variables and objects are stored inside the Java virtual machine, as well as how Java Threads access and share these variables and objects. This Java Memory Model tutorial explains the basics of the Java memory model.
Two concepts are left out of this tutorial: The Java synchronized and volatile keywords. Each of these keywords are explained in their own tutorials (see links below).
Chapters
0:00 Introduction to Java memory organzation - AKA the Java Memory Model
0:29 Java Thread stacks and the heap
1:10 Location of local variables and objects
2:52 Code examples of local variable and object locations
10:45 The thread stacks and heap mapped onto a hardware architecture
12:13 How variables and objects move through the RAM, caches and CPU registers
13:19 How the memory organization in Java can lead to race conditions
15:15 Data update visibility between threads
16:35 Cache coherence strategies do not guarantee data update visibility
18:19 Demo of race conditions in Java threads.
Java Memory Model - JSR 133
https://www.cs.umd.edu/~pugh/java/memoryModel/jsr-133-faq.html
Java Memory Model tutorial - text:
http://tutorials.jenkov.com/java-concurrency/java-memory-model.html
Java Concurrency playlist:
https://www.youtube.com/playlist?list=PLL8woMHwr36EDxjUoCzboZjedsnhLP1j4
Java synchronized keyword tutorial:
http://tutorials.jenkov.com/java-concurrency/synchronized.html
Java volatile keyword tutorial:
http://tutorials.jenkov.com/java-concurrency/volatile.html
Видео The Java Memory Model - The Basics канала Jakob Jenkov
Two concepts are left out of this tutorial: The Java synchronized and volatile keywords. Each of these keywords are explained in their own tutorials (see links below).
Chapters
0:00 Introduction to Java memory organzation - AKA the Java Memory Model
0:29 Java Thread stacks and the heap
1:10 Location of local variables and objects
2:52 Code examples of local variable and object locations
10:45 The thread stacks and heap mapped onto a hardware architecture
12:13 How variables and objects move through the RAM, caches and CPU registers
13:19 How the memory organization in Java can lead to race conditions
15:15 Data update visibility between threads
16:35 Cache coherence strategies do not guarantee data update visibility
18:19 Demo of race conditions in Java threads.
Java Memory Model - JSR 133
https://www.cs.umd.edu/~pugh/java/memoryModel/jsr-133-faq.html
Java Memory Model tutorial - text:
http://tutorials.jenkov.com/java-concurrency/java-memory-model.html
Java Concurrency playlist:
https://www.youtube.com/playlist?list=PLL8woMHwr36EDxjUoCzboZjedsnhLP1j4
Java synchronized keyword tutorial:
http://tutorials.jenkov.com/java-concurrency/synchronized.html
Java volatile keyword tutorial:
http://tutorials.jenkov.com/java-concurrency/volatile.html
Видео The Java Memory Model - The Basics канала Jakob Jenkov
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
Java Happens Before Guarantee - Java Memory Model - Part 2Java Memory Model in 10 minutesJVM ArchitectureJava interview questions and answers for experienced | Live Mock | coding interviewJava VolatileJVM ArchitectureThread Pools in JavaUsing volatile vs AtomicInteger in Java concurrencyUnderstanding JVM Memory, Heap, Garbage Collection and Monitoring the JVM | Tech PrimersSystem Design Interview: TikTok architecture with @sudoCODEMemory Fundamentals - part 1 of Java Memory ManagementАлексей Шипилёв — Прагматика Java Memory ModelJava Concurrency and Multithreading - IntroductionCompare and Swap in JavaJava Stack + Heap with Reference & Instance VariablesWhat is virtual memory? – Gary explainsMemory Management Tutorial in Java | Java Stack vs Heap | Java Training | EdurekaJVM ( java virtual machine) architecture - tutorial