What is a livelock?

Threads And Concurrency Questions



48 Short 41 Medium 46 Long Answer Questions Question Index

What is a livelock?

A livelock is a situation in concurrent programming where two or more threads continuously change their states in response to the actions of other threads, but none of them make any progress. It is similar to a deadlock, but in a livelock, the threads are not blocked, they are actively trying to complete their tasks, but their actions prevent any of them from making progress.