48 votes 48 votes Threads of a process share global variables but not heap heap but not global variables neither global variables nor heap both heap and global variables Operating System gatecse-2017-set1 operating-system threads + – Arjun asked Feb 14, 2017 • edited Feb 22, 2017 by Samujjal Das Arjun 17.2k views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
5 votes 5 votes Thread share all resources of process except local storage like - register , stack. Ans: Option C Smriti012 answered Feb 13, 2017 • edited Feb 13, 2017 by Smriti012 Smriti012 comment Share Follow See all 0 reply Please log in or register to add a comment.
3 votes 3 votes Threads of a process is shares both Global variables and Heap........ akash.dinkar12 answered Mar 31, 2017 akash.dinkar12 comment Share Follow See all 0 reply Please log in or register to add a comment.
1 votes 1 votes 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 smsubham answered Mar 22, 2020 smsubham comment Share Follow See all 0 reply Please log in or register to add a comment.