BFS-and-DFS
March 8, 2025GATE-2024-CS1(Forenoon)
March 9, 2025GATE-2024-CS1(Forenoon)
Question 24 |
Which of the following statements about threads is/are TRUE?
Threads can only be implemented in kernel space | |
Each thread has its own file descriptor table for open files | |
All the threads belonging to a process share a common stack
| |
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.