Question 7965 – GATE 2017 [Set-2]
November 16, 2023Question 7969 – GATE 2017 [Set-2]
November 16, 2023Question 7968 – GATE 2017 [Set-2]
Which of the following is/are shared by all the threads in a process?
I. Program counter
II. Stack
III. Address space
IV. Registers
Correct Answer: B
Question 7 Explanation:
First of all, you need to know about process and threads.
A process, in the simplest terms, is an executing program.
One or more threads run in the context of the process.
A thread is the basic unit to which the operating system allocates processor time.
A thread can execute any part of the process code, including parts currently being executed by another thread.
Each thread has its own stack, register and PC.
So here address space that is shared by all thread for a single process.
A process, in the simplest terms, is an executing program.
One or more threads run in the context of the process.
A thread is the basic unit to which the operating system allocates processor time.
A thread can execute any part of the process code, including parts currently being executed by another thread.
Each thread has its own stack, register and PC.
So here address space that is shared by all thread for a single process.
I and II only
III only
IV only
III and IV only
Subscribe
Login
0 Comments