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

I get wrong characters when retreiving the message body of an email using TIdIMAP4.UIDRetrieveTextPeek2()

How to drop the all the 1's in a correlation matrix

Today Walkin 14th-Sept