title: Code Re-entrancy vs. Thread Safety
body: <p>What is the difference between the concepts of <strong>"Code Re-entrancy"</strong> and <strong>"Thread Safety"</strong>? As per the link mentioned below, a piece of code can be either of them, both of them or neither of them. </p>
  
  <p><a href="http://encyclopedia.thefreedictionary.com/reentrant+code" rel="noreferrer">Reentrant and Thread safe code</a></p>
  
  <p>I was not able to understand the explaination clearly. Help would be appreciated. </p>