CS FundamentalsModerateAccenture · Capgemini pattern

Which statement about threads of the same process is FALSE?

  1. A. They share the code section and global data
  2. B. They share open files
  3. C. Each has its own program counter and register set
  4. D. They share the same stack

Correct answer: D. They share the same stack

Each thread needs its own stack (local variables, return addresses) plus its own PC and registers. Code, data, heap and open files are shared.

More Operating Systems questions

Exams that ask this topic