Operating Systems · Question 17 · Easy

Which of the following is NOT shared between threads of the same process?

  1. The code (text) section
  2. Global variables
  3. The stack
  4. Open files
Answer and explanation

Answer: C. The stack

Explanation: Threads of one process share its address space (code, global data, heap) and its open files, but each thread has its own stack, program counter and register set.

Previous: The Banker's algorithm is used for which deadlock-handling strategy? · Next: Which page-replacement algorithm gives the lowest possible number of page…

Practise operating systems

Try a fresh set of operating systems questions with an explanation after every answer, free and without signing up: Operating Systems practice. Or sit a full placement mock test.

More operating systems questions

More technical & programming practice

Computer Networks · Software Engineering · Cloud & DevOps · GenAI Basics · Pseudo-code · C Programming · Java · Python

LogicWiz Exams home · All practice topics · Placement mock tests · Daily 10 challenge