📜  java中的死锁是什么 - 任何代码示例

📅  最后修改于: 2022-03-11 15:00:28.490000             🧑  作者: Mango

代码示例1
Deadlock is a situation where a set of processes 
are blocked because each process is holding a resource 
and waiting for another resource acquired by some other
process.Process 1 is holding Resource 1 and waiting for
resource 2 which is acquired by process 2, and process 2
is waiting for resource 1.