Multiple choice technology operating systems

Which of the following is false regarding threads?

  1. Threads share code segment

  2. Threads can be preempted

  3. Threads share stack.

  4. Threads share resources

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

Each thread has its own stack to maintain function call chains and local variables independently. Threads share the code segment, data segment, and most OS resources like file descriptors. The statement 'Threads share stack' is false because stacks must be private for each thread to maintain independent execution flows.