In many resources, you can find an interview question about how to call a deadlock in a servlet, and everywhere it is said that the doPost() method should be called in the doPost() body and the doPost() method in the doGet() body and one of them, question number 15.
But the question arises whether it is folklore? Deadlock assumes that the threads go to sleep and wait for notify() or notifyAll() be called on them. But in a cross-call, there is no wait() or notify() . Or is there?