3,386 views

1 Answer

Best answer
4 votes
4 votes

Live Lock: 

livelock is similar to a deadlock, except that the states of the processes involved in the livelock constantly change with regard to one another, none progressing. Livelock is a special case of resource starvation; the general definition only states that a specific process is not progressing.

A real-world example of livelock occurs when two people meet in a narrow corridor, and each tries to be polite by moving aside to let the other pass, but they end up swaying from side to side without making any progress because they both repeatedly move the same way at the same time.


Spin Lock: when a process wasting CPU cycles to check the status of lock.

selected by

Related questions

2 votes
2 votes
1 answer
4
sumit kumar asked Nov 10, 2014
3,073 views
what is the difference between livelock and deadlock?how will you explain livelock to layman?asked at an interview @iitb