title: performing malloc in threads
body: <p>I'm writing an application in c which uses POSIX pthreads. In each thread there is a function which does <code>malloc</code>. So my questions are:</p>
  
  <p>1) Am I guaranteed that each thread allocates a different, non-overlapping block of memory?</p>
  
  <p>2) Is there access to the allocated memory from the main thread (which created the other threads that allocate memory)?</p>
  
  <p>I am using gcc compiler on Windows, but I would like to know the answer for both Windows and Linux.</p>
  
  <p>Thanks</p>