Consider the following statements:
S1: LRU page replacement algorithm suffers from the belady's anomaly
S2: Shortest remaining time first scheduling may cause starvations
S3: Stack is shared by all threads in a process
Pick an option to check yourself, or open the answer below.
Show answer & explanation
Correct answer: B. S1, S3 false and S2 is true
Explanation
LRU is a stack algorithm, so it never shows Belady's anomaly (S1 false). SRTF can starve long jobs (S2 true). Each thread has its own stack; threads share code, data and files (S3 false).
More System Software and Operating System questions
- 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 li…
- Given below are two statements: Which of the following statement/s is/are correct with respect to virtual memory Statement I: Address trans…
- Given below are two statements: one is labelled as Assertion A and the other is labelled as Reason R . A virtual memory system uses first-i…
- Consider three processes: P0 (arrival 0 ms, burst 7 ms), P1 (arrival 1 ms, burst 3 ms), P2 (arrival 2 ms, burst 7 ms). Pre-emptive shortest…
- Match List I with List II. List I: A. RAID level 2, B. RAID level 4, C. RAID level 5, D. RAID level 3. List II: I. Bit-interleaved parity,…
- Match List I with List II. List I: A. Critical region, B. Wait/signal, C. Working set, D. Deadlock. List II: I. Hoare's monitor, II. Mutual…