What are common reasons for deadlocks?

后端 未结 12 998
清酒与你
清酒与你 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:01

    In my last project I faced a problem with deadlocks in an sql Server Database. The problem in finding the reason was, that my software and a third party software are using the same Database and are working on the same tables. It was very hard to find out, what causes the deadlocks. I ended up writing an sql-query to find out which processes an which sql-Statements are causing the deadlocks. You can find that statement here: Deadlocks on SQL-Server

提交回复
热议问题