So, it has come to this. As we are not really able to prevent or avoid deadlock in all situations, we can try to detect it and if we do detect it, do something about it. This covers detection, recovery strategies, and a little section on livelock as well.