...
This rule appears in the Java Secure Coding Standard as CON14 LCK07-J. Avoid deadlock by requesting and releasing locks in the same order.
References
Wiki Markup |
---|
\[[pthread_mutex | https://computing.llnl.gov/tutorials/pthreads/#Mutexes]\] pthread_mutex tutorial \[[MITRE CWE:764 | http://cwe.mitre.org/data/definitions/764.html]\] Multiple Locks of Critical Resources \[[Bryant 03|AA. References#Bryant 03]\] Chapter 13, Concurrent Programming |
...