title: Difference between pthread and fork on gnu/Linux
body: <p>What is the basic difference between a pthread and fork w.r.t. linux in terms of
  implementation differences and how the scheduling varies (does it vary ?)</p>
  
  <p>I ran strace on two similar programs , one using pthreads and another using fork,
  both in the end make clone() syscall with different arguments, so I am guessing 
  the two are essentially the same on a linux system but with pthreads being easier 
  to handle in code.</p>
  
  <p>Can someone give a deep explanation?</p>
  
  <p>EDIT : see also a related <a href="https://stackoverflow.com/questions/807506/threads-vs-processes-in-linux">question</a> </p>