Deadlocks occur when two tasks permanently block each other because each task has a lock on a resource needed by the other task.

  • 如果两个任务因均拥有一个对方所需资源的锁而永久互相锁定,就会发生死锁。
目录 查词历史