Let us say that one Thread is executing inside a Synchronized Function in Java and another Thread wants to access the same method but it will have to wait till the first Thread completes. How can the second Thread know which Thread is having the Lock on the Object. I would want to print the details of the first Thread and possibly from where the first Thread was initiated.Let us say that one Thread is executing inside