Advanced Java: Multi-threading Part 11 - Deadlock

More courses! Free C++ course: https://www.udemy.com/course/free-lea... Make a social network with Spring Boot: https://www.udemy.com/course/java-spr... Learn about MySQL and relational databases: https://www.udemy.com/course/mysql-an... Java desktop programming: https://www.udemy.com/course/java-swi... Intermediate-Advanced C++ 11: https://www.udemy.com/course/learn-ad... ------------------------------------------------------------------------------------------------------------------------------------------- The causes of deadlock and two things you can do about it. This video also covers how to write a method that can safely acquire any number of locks in any order without causing deadlock, using the tryLock() method of ReentrantLock. -------------------------------------------------------------------------------------------------------------------------------------------- More videos on my YouTube channel:    / caveofprogramming