Question discussion

Which of the following is shared by all the threads of the same process?

2330Medium DSSSB TGT Computer Science 0 replies

Which of the following is shared by all the threads of the same process?

  • AThe stack
  • BThe code section, data section and open files
  • CThe register set
  • DThe program counter
Correct answer: B

Explanation

Threads of a process share its code, data and open files, but each thread has its own stack, registers and program counter.

Discussion 0

Nobody has replied yet. Start the discussion!