哪位高手来解释一下这句话(英译汉就不用说了)The JVM implementation guarantees that multiple threads ca

谁来解释一下这句话(英译汉就不用说了)The JVM implementation guarantees that multiple threads cannThe

谁来解释一下这句话(英译汉就不用说了)The JVM implementation guarantees that multiple threads cann
The JVM implementation guarantees that multiple threads cannot enter into a deadlocked state.
--JVM实现,保证了多个线程不能进入一个胶着状态。
线程不是存在竞争吗,怎么就不能进入胶着状态(个人理解胶着状态为等待)。
请批评了!

[解决办法]
死锁一般会发生在使用了两把或者以上数量的监视对象上。

如果有 a 方法和 b 方法,如果 a 方法中的代码是这样的:

Java code
synchronized(a)  {    synchronized (b) {        ....    }}