3 ms·
I, too, enjoy creating deadlocks. [I assume if you are using this pattern successfully in production you are already aware of and taking proper steps to avoid
by saalweachter 6y ago
I, too, enjoy creating deadlocks.
[I assume if you are using this pattern successfully in production you are already aware of and taking proper steps to avoid them, but the pedant in me takes issue with "without any issue", since once you have multiple resources being locked in multiple threads, you need to be careful to acquire and release locks in such a way that deadlocks do not occur, either never acquiring more than one lock at a time, acquiring locks in specific orders, or acquiring batches of locks at a time.]