84

理解 JVM:Java 内存模型(三)—— 锁 | alexpdh's blog

 6 years ago
source link: http://alexpdh.com/2017/11/12/java-memory-model-03/?
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
什么是线程安全?线程安全是指当一个对象被多个线程访问操作时,最终都能得到正确的结果,那这个对象是线程安全的。Java 中可以通过同步块和加锁保障线程安全。

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK