Home » Operating Systems » Operating systems miscellaneous » Question

Operating systems miscellaneous

  1. Which of the following is/are shared by all the threads in a process?
    I. Program counter
    II. Stack
    III. Address space
    IV. Registers
    1. I and II only
    2. III only
    3. IV only
    4. III and IV only
Correct Option: B

The thread is a light weight process and all the threads in a process has share address space but other entities like, stack, PC, registers are not shared and every thread will have its own.
So, option (b) is correct.



Your comments will be displayed only after manual approval.