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

Today Walkin 14th-Sept

Hibernate Search - Elasticsearch with JSON manipulation

Spring Elasticsearch Operations