is heap shared between processes?
When a process starts, it is assigned memory and resources. Each thread in the process shares that memory and resources. ... It is important to distinguish between these two types of process memory because each thread will have its own stack, but all the threads in a process will share the heap.