title: What does it mean by saying all threads in a process share same data?
body: <p>In my textbook it says:</p>
  
  <blockquote>
    <p>All threads within a process have access to the same data (share)</p>
  </blockquote>
  
  <p>But each thread has its own stack, it means local variable is not shared. So what kind of data threads can share.</p>
  
  <p>update:</p>
  
  <p>I found each thread can share global variable, it made me confused, what I learn global global variable is static stack, it shouldn't be shared by that each thread has its own stack.</p>