2020-03-20

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.




No comments:

Post a Comment