Which of the following statement(s) is/are true regarding threads in operating…
2021
Which of the following statement(s) is/are true regarding threads in operating system? I. The threads in a process are visible to other processes. II. A thread is strictly private resource of a process.
- A.
Only I
- B.
Only II
- C.
Both I and II
- D.
Neither I nor II
Attempted by 174 students.
Show answer & explanation
Correct answer: B
The correct answer is Option 2: Only II.
In operating system theory, a thread is the smallest unit of execution within a process. While threads share certain resources of their parent process, they are contained entirely within that process's address space.
Process Isolation: Operating systems maintain strict isolation between different processes to ensure security and stability.
Thread Visibility: Because threads exist within the private address space of a process, they are not visible to other processes. One process cannot "see" or directly interact with the threads of another process without specific inter-process communication (IPC) mechanisms.
Private Resource: A thread is considered a private resource of its parent process. It shares the process's code section, data section, and OS resources (like open files), but it is not accessible to outside entities.