title: When is clone() and fork better than pthreads?
body: <p>I am beginner in this area.</p>
  
  <p>I have studied <code>fork()</code>, <code>vfork()</code>, <code>clone()</code> and pthreads.</p>
  
  <p>I have noticed that <code>pthread_create()</code> will create a thread, which is less overhead than creating a new process with <code>fork()</code>.  Additionally the thread will share file descriptors, memory, etc with parent process.</p>
  
  <p>But when is <code>fork()</code> and <code>clone()</code> better than pthreads?  Can you please explain it to me by giving real world example?</p>
  
  <p>Thanks in Advance.</p>