GATE CSE 2017 Session 1 Q28: What threads of a process share: heap and global variables
- Operating System
- 1 mark
- MCQ
- −1/3 if wrong
Syllabus topic: System calls, processes and threads
Question
Threads of a process share
Try it: multiple choice: exactly one correct option
Wrong answer costs 1/3 mark in GATE.
Show answer and explanation
Answer: D (official GATE 2017 final answer key)
Concept used: Threads of one process share its address space (code, globals, heap, open files) but each has its own stack and registers.
First step: List which parts of the process image are per-thread and which belong to the process as a whole.
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
Source: official GATE 2017 Session 1 CS question paper and final answer key, organised by IIT Roorkee. Question paper · Answer key
More Operating System PYQs
- 2026 Session 1 · Q29False statements about deadlocks
- 2026 Session 1 · Q35Minimum resource instances for deadlock freedom (5 processes, max 2)
- 2026 Session 1 · Q59Disk transfer time for random sectors on tracks 5, 12, 7
- 2026 Session 1 · Q63Number of printf calls with fork, continue and break
- 2026 Session 1 · Q64Average FCFS waiting time for alternating A and C processes
- 2026 Session 2 · Q23CPU scheduling algorithm that cannot be preemptive