GATE - 2017 | OS | Threads of a process share

GATE - 2017 | OS | Threads of a process share
Posted on 08-02-2022

GATE - 2017 [Operating System]

Question:

Threads of a process share

A

global variables but not heap.

B

heap but not global variables.

C

neither global variables nor heap.

D

both heap and global variables.

   

Solution:

Option (D) is Correct

Multiple threads of the same process share other resources of process except register, stack and stack pointer.

A process is generally considered to consist of a set of threads sharing an address space, heap, static data, code segments and file descriptors.

Thread share all other resources of process except local data like – register, stack.

Threads of a process share A global variables but not heap. B heap but not global variables. neither global variables nor heap. both heap and global variables.

 

Thank You

Download App for Free PDF Download

GovtVacancy.Net Android App: Download

government vacancy govt job sarkari naukri android application google play store https://play.google.com/store/apps/details?id=xyz.appmaker.juptmh