Question

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

Choose every correct option
Official answer and solution
Official answer
D
From
Official GATE 2024 answer key

Solution

Examine what resources threads of the same process share (address space, heap, open files) versus what each thread owns privately (stack, registers, program counter).

  • (A) is FALSE: Threads can be implemented in user space (user-level threads), in kernel space (kernel-level threads), or in a hybrid manner.
  • (B) is FALSE: All threads of a process share the process's open file descriptor table.
  • (C) is FALSE: Each thread has its own private execution stack (for its local variables and function call frames).
  • (D) is TRUE: Because all threads within a process share the same virtual address space, any thread can read or write memory accessible to other threads in the same process; there is no hardware memory protection between threads of the same process by default.
Final answer

Option (D)

The answer is the one in the official GATE answer key. The solution is this site's own explanation.

Source

Paper
GATE 2024 Computer Science and Information Technology - Set 1 (CS1)
Question
24 of 65
Section
Computer Science and Information Technology

Report an error in this question

GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.