What are common reasons for deadlocks?

后端 未结 12 1018
清酒与你
清酒与你 2020-12-13 00:16

Deadlocks are hard to find and very uncomfortable to remove.

How can I find error sources for deadlocks in my code? Are there any \"deadlock patterns\"?

In m

12条回答
  •  被撕碎了的回忆
    2020-12-13 01:04

    To avoid the deadlock there is a algorithm called Banker's algorithm.

    This one also provides helpful information to avoid deadlock.

提交回复
热议问题