Operating Systems · Question 5 · Easy

Where does the operating system save a process's program counter, CPU registers and state during a context switch?

  1. Page table
  2. Translation Lookaside Buffer (TLB)
  3. Process Control Block (PCB)
  4. Interrupt vector table
Answer and explanation

Answer: C. Process Control Block (PCB)

Explanation: Each process has a PCB, which stores its state, program counter, registers, scheduling and memory-management information. These values are saved there and restored on a context switch.

Previous: Which of the following is NOT one of the four necessary conditions for a… · Next: Three processes arrive at time 0 in the order P1, P2, P3 with CPU burst times…

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