in Operating System edited by
16,823 views
48 votes
48 votes

Threads of a process share

  1. global variables but not heap
  2. heap but not global variables
  3. neither global variables nor heap
  4. both heap and global variables
in Operating System edited by
by
16.8k views

7 Answers

5 votes
5 votes

Thread share all resources of process except local storage like - register , stack.

Ans: Option C

edited by
3 votes
3 votes
Threads of a process is shares both Global variables and Heap........
1 vote
1 vote

Threads share:

  • Address space
  • Heap
  • Static data
  • Code segments
  • File descriptors
  • Global variables
  • Child processes
  • Pending alarms
  • Signals and signal handlers
  • Accounting information

Threads have their own:

  • Program counter
  • Registers
  • Stack
  • State

So D is correct.

Ref: https://www.cs.uic.edu/~jbell/CourseNotes/OperatingSystems/4_Threads.html

Answer:

Related questions