Skip to content

Latest commit

 

History

History
9 lines (5 loc) · 302 Bytes

PH_B001.md

File metadata and controls

9 lines (5 loc) · 302 Bytes

PH_B001 - Possible Deadlock

Problem

Nesting monitor locks may lead to deadlocks. In this particular case, the method may use the sync object of the current instance and another instance.

Solution

Avoid the use of nested locks whenever possible. Alternatively, ensure a linear locking order.