JUC programming 09:JMM, Volatile

1, What is JMM 1. Concept JMM:Java virtual machine is a cross platform virtual system, so it also has its own memory model, namely Java Memory Model (JMM). 2. JMM synchronization Before the thread is unlocked, the shared variable must be flushed back to main memory immediately. Before locking a thread, you must read the latest value in ma ...

Added by zorgon on Sat, 01 Jan 2022 22:42:33 +0200