GATE 2017 CS – Question 28
Threads of a process share
Practise this question in The GATE Grind →
Show answer and explanation
Correct answer: (D) both heap and global variables.
Explanation
Threads of one process run in the same address space, so they share the global variables and the heap. Each thread has its own stack and registers.