This is a question asked to one of my friends during an interview.
How do you know whether a thread is blocked inside a synchronized method, from another thread?
Can anybody please explain this using an example?
This is a question asked to one of my friends during an interview.
How do you know whether a thread is blocked inside a synchronized method, from another thread?
Can anybody please explain this using an example?