Ericsson interview question

I had to recognize possible dead/live locks in java code examples.