title: Linux system call for creating process and thread
body: <p>I read in a <a href="http://www.cs.umass.edu/~emery/pubs/fs-oopsla2011.pdf" rel="noreferrer">paper</a> that the underlying system call to create processes and threads is actually the same, and thus the cost of creating processes over threads is not that great.  </p>
  
  <ul>
  <li>First, I wanna know what is the system call that creates
  processes/threads (possibly a sample code or a link?)</li>
  <li>Second, is
  the author correct to assume that creating processes instead of
  threads is inexpensive?</li>
  </ul>
  
  <p><strong>EDIT:</strong><br>
  Quoting article:  </p>
  
  <blockquote>
    <p>Replacing pthreads with processes is surprisingly inexpensive,
    especially on Linux where both pthreads and processes are invoked
    using the same underlying system call.</p>
  </blockquote>