title: Heap in multi-threaded environment
body: <p>How the heap is managed in the multi-threaded environment ? </p>
  
  <ul>
  <li>Is it shared among the threads or each thread has its independent heap ? </li>
  <li>If both are possible then which is the recommended approach ?</li>
  </ul>
  
  <p><img src="https://i.stack.imgur.com/cSreA.jpg" alt="enter image description here"></p>