Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是什么thread monitor意思?我首先想到的是thread在声明中做某事synchronized。我对吗?
thread monitor
thread
synchronized
在并发编程中,
监视器是旨在由多个线程 源安全使用的对象或模块
这些是thread synchronization 相互排斥与合作
synchronization
互斥,在 JVM 中通过对象锁支持,它使多个线程能够独立地处理共享数据,而不会相互干扰。
JVM 通过 class 的wait和notify方法支持协作Object,使线程能够朝着共同的目标一起工作。
wait
notify
Object