title: Posix Threads attributes & detach state
body: <p>Today I came across POSIX thread attributes, they are a little weird work with, when you are using them for the first time. I am a little confused about <code>pthread_attr_setdetachstate</code>, which states that:</p>
  
  <blockquote>
    <p>POSIX threads are in Join state (with the thread which created it) by default but in order to join them, we have to explicitly call <code>pthread_join()</code> for joining the thread.</p>
  </blockquote>
  
  <p>Do we need to call <code>pthread_detach</code> explicitly even when the thread attribute is set to <code>detach</code>?</p>