Threads share the process address space, including code and global data. Each thread maintains its own program counter, register context and stack so it can execute independently. Thus only III is shared, B.
More System Calls, Processes, Threads and IPC questions
GATE 2012 CS (CS1) Q18– A process executes fork(); fork(); fork();. How many child processes are created?
GATE 2011 CS (CS1) Q16– User-to-kernel mode switch time is t₁; switching between two processes takes t₂. Which is…
GATE 2011 CS (CS1) Q26– An OS maintains smaller per-thread structures than per-process structures. Which statement…
GATE 2015 CS (CS3) Q14– For a system with n CPUs, the maximum number of processes in the Ready state is
GATE 2021 CS (CS2) Q52– Processes P1,P2 each execute this code with ordinary process-private globals; each creates…
GATE 2026 CS (CS1) Q63– Consider the following program snippet. Assume that the program compiles and runs…