upvote
Lock ordering is indeed a common pattern to avoid deadlocks. I learned it in school in the 80's and MIT teaches it today. [0]

[0] https://web.mit.edu/6.005/www/fa15/classes/23-locks/#deadloc...

reply
I'm aware.

I'd be curious to hear the authors reason to not prefer a LockSet everywhere.

reply