Two locks taken in opposite orders: each thread waits for the other for ever. Find the cycle, then fix it with one global order.
This interactive visualization needs JavaScript.