Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

What is a Livelock?

Pragya Keshap answered on February 4, 2023 Popularity 8/10 Helpfulness 2/10

Contents


More Related Answers


What is a Livelock?

0

Livelock is a scenario in which two or more block each other by

responding to an action caused by another thread.

In a deadlock situation two or more threads wait in one specific

state.

In a Livelock scenario, two more threads change their state in such a

way that it prevents progress on their regular work.

E.g. Consider scenario in which two threads try to acquire two

locks. They release a lock that they have acquired, when they cannot

acquire the second lock.

In a Livelock situation, both threads concurrently try to acquire the

locks. Only one thread would succeed, the second thread may

succeed in acquiring the second lock.

Now both threads hold two different locks. And both threads want

to have both locks. So they release their lock and try again from the

beginning. This situation keeps repeating multiple times

https://www.geeksforgeeks.org/deadlock-starvation-and-livelock/

Popularity 8/10 Helpfulness 2/10 Language whatever
Source: Grepper
Tags: whatever
Link to this answer
Share Copy Link
Contributed on Feb 04 2023
Pragya Keshap
0 Answers  Avg Quality 2/10


X

Continue with Google

By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
X
Grepper Account Login Required

Oops, You will need to install Grepper and log-in to perform this action.