CS FundamentalsHardGATE CS
Assertion (A): A system in an unsafe state will definitely deadlock. Reason (R): In an unsafe state no sequence exists in which all processes can obtain their maximum claims.
- A. A is false but R is true
- B. Both A and R are true, and R is the correct explanation of A
- C. A is true but R is false
- D. Both A and R are false
Correct answer: A. A is false but R is true
R describes an unsafe state correctly, but processes may never actually request their full maxima, so deadlock is possible, not certain.
More Operating Systems questions
- Assertion (A): Context switching between threads of the same process is cheaper than between processes. Reason (R): Threads of the same…
- Which pair correctly matches each mechanism with the problem it solves? P. Aging Q. Priority inheritance R. Copy-on-write S. Working-set…
- Match the file-system structure with what it is used for: (1) superblock, (2) inode bitmap, (3) journal, (4) directory entry. (a) maps a…
- Which sequence of metadata updates for appending a block to a file is SAFEST to write to disk without a journal, so that a crash leaves at…
- An application calls fsync() after writing a new file and then renames it into place. Why must it also fsync the containing directory on…
- A TLB with 32 entries uses 4 KB pages. A program loops over an array of 40 pages, touching each page once per pass. With LRU replacement…