Is this table a correct way to summarize difference between starvation, livelock and deadlock?
Mainly I am asking about "thread is active", "how many threads", "nr of resources / locks" columns correctness
thread is active | how many threads | nr of resources / locks | summary | |
---|---|---|---|---|
starvation | yes | 1 | 1 | the thread is preceded by other threads in accessing the resource/lock |
livelock | yes | 2 | 2 | scenario like in deadlock, but the threads are actively running and freeing resources and trying to allocate them in reverse order, but the blocking situation repeats, etc. |
deadlock | no | 2 | 2 | Two threads claim two resources/locks but in reverse order. They immediately block both resources/locks and thus block each other |