Image for Livelock

Livelock

A livelock occurs in a system when two or more processes are actively responding to each other but fail to make progress because they repeatedly change their actions to adapt to each other’s behavior. Unlike a deadlock, where processes are stuck waiting, in a livelock, processes keep running but never complete their tasks. It’s like two people trying to pass through a narrow doorway at the same time and repeatedly stepping aside to let the other pass, only to end up stuck in a loop of constant movement without ever crossing.