Practice mode Operating Systems

Which resource do threads of the same process NOT share with each other?

Correct answer C. Their stacks and register sets

Explanation

Threads in one process share its address space, so code, global variables, heap and open files are common to all of them. Each thread needs its own program counter, registers and stack, because each follows its own path of execution with its own function calls and local variables. That separation is what makes threads independent schedulable units.

Report a problem

Answer checked How we write and check questions

Tip: press A, B, C or D to answer, and N for the next question.

Advertisement

Have a question about this answer?

Your email address will not be published. Required fields are marked *

Links and website addresses are not allowed in comments.