Thread Deadlock vs Livelock vs Starvation

What is the difference between Deadlock, Livelock and Starvation?


Deadlock: two or more threads are blocked forever, waiting for each other.

Starvation: a thread is unable to gain regular access to shared resources and is unable to make progress.

Livelock: threads are not blocked, but are not making any progress.




Comments

Popular posts from this blog

Spring Elasticsearch Operations

Object oriented programming concepts (OOPs)

Network Error and Timeout on Authorize.net JS