...
BFS-and-DFS
March 8, 2025
GATE-2024-CS1(Forenoon)
March 9, 2025
BFS-and-DFS
March 8, 2025
GATE-2024-CS1(Forenoon)
March 9, 2025

GATE-2024-CS1(Forenoon)

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

 

 

A
Threads can only be implemented in kernel space

B
Each thread has its own file descriptor table for open files
C
All the threads belonging to a process share a common stack
D
Threads belonging to a process are by default not protected from each other
Question 24 Explanation: 
By default, threads within the same process share the same memory space and have access to each other’s data. This lack of protection means that one thread can inadvertently overwrite or interfere with data being used by another thread within the same process.
Correct Answer: D
Question 24 Explanation: 
By default, threads within the same process share the same memory space and have access to each other’s data. This lack of protection means that one thread can inadvertently overwrite or interfere with data being used by another thread within the same process.

Leave a Reply

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