title: What Happens When I Call fork() in Unix?
body: <p>I've tried to look this up, but I'm struggling a bit to understand the relation between the Parent Process and the Child Process immediately after I call fork().</p>
  
  <p>Are they completely separate processes, only associated by the id/parent id?  Or do they share memory?  For example the 'code' section of each process - is that <em>duplicated</em> so that each process has it's own identical copy, or is that 'shared' in some way so that only one exists?</p>
  
  <p>I hope that makes sense.  </p>
  
  <p>In the name of full disclosure this is 'homework related'; while not a direct question from the book, I have a feeling it's mostly academic and, in practice, I probably don't need to know.</p>