Given below are two statements: one is labelled as Assertion A and the other…
2023
Given below are two statements: one is labelled as Assertion A and the other is labelled as Reason R.
Assertion A: A process involves a library function to create a thread.
Reason R: The threads make system calls to convey their resource and I/O requirement to the Kernel.
In the light of the above statements, choose the correct answer from the options given below.
- A.
Both A and R are true and R is the correct explanation of A
- B.
Both A and R are true but R is NOT the correct explanation of A
- C.
A is true but R is false
- D.
A is false but R is true
Attempted by 79 students.
Show answer & explanation
Correct answer: B
Both A and R are true, but R is NOT the correct explanation of A.
Assertion A is true:
A process uses a library function (e.g., pthread_create()) to create a thread.
Reason R is also true:
Threads do make system calls to communicate resource and I/O requirements to the kernel.
But R does not explain A:
Thread creation via a library function is independent of how threads later make system calls.
Hence, option (B) is correct.
A video solution is available for this question — log in and enroll to watch it.