title: How can one Java thread check the state of another one, e.g. whether the other one is blocked?
body: <p>This is a question asked to one of my friends during an interview.</p>
  
  <blockquote>
    <p>How do you know whether a thread is blocked inside a synchronized method, from another thread?</p>
  </blockquote>
  
  <p>Can anybody please explain this using an example?</p>