GateAI
Processes, Threads and IPC

GATE CSE 2017 Set 2 · Q7

MCQ1 markEasy

Time

Which of the following is/are shared by all the threads in a process? I. Program counter II. Stack III. Address space IV. Registers

Select one answerSingle correct

Pick an option to check

Solution

Step-by-step verified solution

Official answer: B) III only

Processes, Threads and IPC

Threads belonging to the same process share common process resources, including:

  • Address space (code segment, data segment, heap)

  • Open files and I/O resources

However, each thread maintains its own private execution context, which includes:

  • Program counter (PC)

  • Register set

  • Stack (for local variables and function calls)

  • Thread ID and state

Therefore, only statement III (Address space) is shared by all threads in a process.

Hence, the correct option is (B).

Try the question first, then check your work.

Think the official key or this write-up is wrong?

Report error or challenge

Examiner trap

The misconception this question tests

This Processes, Threads and IPC previous year question is Q7 of the GATE CSE 2017 Set 2 paper. Find more GATE CSE PYQs on Processes, Threads and IPC in Operating Systems, or browse all GATE CSE PYQs.

Free diagnostic

Where do you stand for GATE?

Take the 20-minute diagnostic: the 3 topics that cost you the most marks, and a rank range. Or sit 5 related Processes, Threads and IPC PYQs now with no account.

One GATE CSE PYQ every morning

An official question by email at 7 AM IST, with a link to its verified solution. Unsubscribe in one click.

Processes, Threads and IPC in GATE CSE

Processes, Threads and IPC has 15 GATE CSE PYQs across 13 papers from 2011 to 2026. 7 of them are 1-mark MCQs like this one, and it is the only one in GATE CSE 2017 Set 2.

How GATE tests Processes, Threads and IPC

More from GATE CSE 2017 Set 2

Share this solution

A plain-text card for WhatsApp or Telegram study groups.

GateAI solution cardGATE CSE 2017 Set 2 · Q7 · MCQ

Which of the following is/are shared by all the threads in a process? I. Program counter II. Stack III. Address space IV. Registers

Topic-wise GATE CS PYQs with verified steps

Independent practice explanation verified by the GateAI team. GATE is conducted by the IITs; question text follows the official paper.