The GATE Grind

GATE 2024 CS (CS1) – Question 24

Operating System · System Calls, Processes, Threads and IPC · 1 mark · Multiple select

Which of the following statements about threads is/are TRUE?

  1. Threads can only be implemented in kernel space
  2. Each thread has its own file descriptor table for open files
  3. All the threads belonging to a process share a common stack
  4. Threads belonging to a process are by default not protected from each other

Practise this question in The GATE Grind →

Show answer and explanation

Correct answer: (D) Threads belonging to a process are by default not protected from each other

Explanation

Threads can be user-level or kernel-level, share the process's file descriptor table, and each has its own stack. Threads in a process share address space, so they are not protected from each other.