Skip to content
GATEiit

GATE CSE 2017 Session 2 Q17: What all threads of a process share

Syllabus topic: System calls, processes and threads

Question

Which of the following is/are shared by all the threads in a process?

I. Program counter II. Stack III. Address space IV. Registers

Try it: multiple choice: exactly one correct option

Select one option
Wrong answer costs 1/3 mark in GATE.
Show answer and explanation

Answer: B (official GATE 2017 final answer key)

Concept used: Each thread has its own execution context (program counter, registers, stack) but threads of a process share its address space.

Concept notes

Loading notes…

First step: Separate per-thread execution state from the per-process resources.

Full step-by-step solution

Loading…

Answer from the official final answer key. Found a mistake? Use Report issue and we will fix it.

More questions on System calls, processes and threads

Every PYQ on this topic →

Share this question

WhatsAppDownload image

Source: official GATE 2017 Session 2 CS question paper and final answer key, organised by IIT Roorkee. Question paper · Answer key