JMM: Java Memory Model

Andrea Huang
Jul 2, 2021

Happens Before

operation happens before update of a volatile variable must be visible after read of a volatile variable

--

--

Andrea Huang

我的Patrick是個6歲的小男孩。我想記錄下此時我想與他分享的感悟。雖然他此時未必能理解,但是等到適當的時機,他可以讀到來自媽媽當年的分享