Threads
closed

closed by
833 views
0 votes
0 votes
closed as a duplicate of: GATE CSE 2017 Set 1 | Question: 18

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

My doubt is thread does share code section , data section and files. So global variables it does share bt does it also share heap section? 

closed by

Related questions

1 votes
1 votes
1 answer
1
Na462 asked Jul 12, 2018
1,646 views
According to me Answer is C, because Multithreading i.e. User application threads cannot use different processors because processor see all the thread of user process as ...
1 votes
1 votes
4 answers
2
ankitgupta.1729 asked Dec 14, 2017
1,801 views
The primary difference between process and thread ?(A) The number of I/O requests mode.(B) The amount of overhead associated with creation and context switching .(C) The ...
1 votes
1 votes
2 answers
3
rahul sharma 5 asked Dec 6, 2017
678 views
Why threads have less context than process? Context means various attributes that we store in the PCB,so the attributes like state,property,PC,etc.. should be there in b...
0 votes
0 votes
1 answer
4
Parshu gate asked Sep 18, 2017
1,142 views
Multi-threaded application cannot take advantage of multiprocessing.What does this mean?