Skip to content
GATEiit

GATE CSE 2023 Q22: What to save on a switch between threads of one process

Question

Which one or more of the following need to be saved on a context switch from one thread (T1) of a process to another thread (T2) of the same process?

Try it: multiple select: one or more correct options

Select one or more options
Select all correct options. No negative marking, no partial marks.
Show answer and explanation

Answer: B, C, D (official GATE 2023 final answer key)

Concept used: Threads of one process share the address space but each has its own execution context.

First step: Separate per-thread state (registers, stack, PC) from per-process state (address space).

Full step-by-step solution

Detailed working, common mistakes and linked mock tests will be available with a free GATEiit account. Log-in is coming soon.

Share this question

WhatsAppDownload image

Source: official GATE 2023 CS question paper and final answer key, organised by IIT Kanpur. Question paper · Answer key