Deadlock is when one blocks the other.
To resolve deadlock, use only one lock...
A livelock is like a deadlock, except that it's more "polite"
Imagine two polite users wanting to let each other pass first. Both
wants to let each other cross before crossing, and ended up doing
nothing.
It happens when users put locks on their files and is being denied
access.