Which resource do threads of the same process NOT share with each other?
Correct answer C. Their stacks and register sets
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.
Answer checked How we write and check questions
Discussion