title: Tips to write thread-safe UNIX code?
body: <p>What are the guidelines to write thread-safe UNIX code in C and C++?</p>
  
  <p>I know only a few:</p>
  
  <ul>
  <li>Don't use globals</li>
  <li>Don't use static local storage</li>
  </ul>
  
  <p>What others are there?</p>