I have this code in Java:
public void doSomeThing() { synchronized (this) { doSomeThingElse(); } } public void doSome
Lock already obtanied by the thread executing doSomething method, therefore this thread can execute doSomethingElse method.
You need two lock object to create a deadlock situation. In your case, there is only one, therefore it is impossible to create a deadlock.