4 ms·
So does it boil down to "grab all your locks upfront, if you can't then yield them all back"?
by jayd16 8y ago
So does it boil down to "grab all your locks upfront, if you can't then yield them all back"?
- dkarl 8y agoPretty much, plus if you're even running, you have high confidence that lock acquisition will succeed, because the entity that gave you a thread to run on has checked that all the resources you need are available.