Similar questions 3 more →
Processes, Threads & System Calls

Answer & solution
Official answer: D
1. Threads are separate execution streams inside the same process address space. Globals live in that shared address space.
2. Heap allocations also belong to the process address space; one thread can pass an allocated object’s address to another. Sharing does not itself make unsynchronized updates safe.
3. Each thread instead has its own execution state, such as registers and program counter, and normally its own stack. Hence both heap and globals are shared, D.