Given below are two statements: one is labelled as Assertion A and the other is labelled as Reason R.
Assertion A: A process invokes a library function to create a thread.
Reason R: Threads make system calls to convey their resource and I/O requirements to the kernel.
Pick an option to check yourself, or open the answer below.
Show answer & explanation
Correct answer: B. Both A and R are true but R is NOT the correct explanation of A
Explanation
Threads are created through library calls (e.g. pthread_create) and they make system calls for resources and I/O. Both statements are true, but R does not explain how threads are created.More System Software and Operating System questions
- With respect to virtual memory: Statement I: Address translation is performed for every logical address used during the execution of a prog…
- A virtual memory system uses the first-in first-out page replacement policy and allocates a fixed number of frames to a process. Assertion…
- Consider the following arrival and burst times for three processes P0, P1, P2. The pre-emptive shortest job first algorithm is used, and sc…
- Match List I with List IIList I List II A. RAID level 2 I. Bit interleaved parity B. RAID level 4 II. Block interleaved distributed parity…
- Match List I with List IIList I List II A. Critical region I. Hoare's monitor B. Wait/signal II. Mutual exclusion C. Working set III. Princ…
- At a particular time of computation, the value of a counting semaphore is 7. Then 20 P operations and x V operations were completed on this…