Home » Operating Systems » Operating systems miscellaneous » Question

Operating systems miscellaneous

  1. Threads of a process share
    1. global variables but nor heap.
    2. heap but nor global variables.
    3. neither global variables nor heap.
    4. both heap and global variables.
Correct Option: D

Threads of a process can share both heep and global variables because these are shared by every thread of a process. Generally every thread of a process have their own PC and Stack. So option (d) is correct.



Your comments will be displayed only after manual approval.