Which of the following is/are shared by all the threads in a process? I. Program counter II. Stack III. Address space IV. Registers
A
I and II only
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
III and IV only
No worries! We‘ve got your back. Try BYJU‘S free classes today!
C
III only
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
D
IV only
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution
The correct option is C III only All the threads share address space but other entities like, stack, PC, resisters are not shared and every thread will have its own.