Skip to content

Huseyin BABAL's Blog

Articles about Java, Go, Microservices, Cloud, Distributed Systems

  • Home
  • About Me
  • My Talks

Tag: deadlock

How to Avoid Deadlocks in Java

In the previous article, we talked about how deadlocks occur in Java while working in a multi-threaded environment. Now, we will see how to prevent deadlocks by explaining a couple of corner cases. Avoid Nested Locks In the previous article, we showed an example for deadlock, and it contains nested locks as follows. ... Thread … Continue reading How to Avoid Deadlocks in Java →

Huseyin BABAL Java Leave a comment August 6, 2022August 6, 2022 3 Minutes

Understanding Java Thread DeadLock

In a multi-threaded environment, it is ok that multiple threads simultaneously handles their tasks to improve the CPU utilization instead of keeping CPU as idle. In such an environment, it is ok if multiple threads try to access a shared resource, only one of them can acquire lock and the others should wait for that … Continue reading Understanding Java Thread DeadLock →

Huseyin BABAL Java 2 Comments July 30, 2022July 29, 2022 6 Minutes
Blog at WordPress.com.
  • Follow Following
    • Huseyin BABAL's Blog
    • Already have a WordPress.com account? Log in now.
    • Huseyin BABAL's Blog
    • Customize
    • Follow Following
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar
 

Loading Comments...