Computer AwarenessVery hardIBPS SO IT Officer
A process has 3 page frames, all empty at first, and refers to pages 7, 0, 1, 2, 0, 3, 0, 4, 2, 3. How many page faults occur under the Optimal (OPT) algorithm?
- A. 7
- B. 6
- C. 8
- D. 9
Correct answer: B. 6
OPT evicts the page used farthest in future: faults on 7, 0, 1, 2 (evict 7), 3 (evict 1) and 4 (evict 0); the rest hit, so 6 faults. LRU gives 8 and FIFO 9 on this string.
हिंदी में
एक प्रक्रिया के पास 3 पेज फ़्रेम हैं, जो शुरू में सब खाली हैं, और वह पेजों 7, 0, 1, 2, 0, 3, 0, 4, 2, 3 का संदर्भ देती है। ऑप्टिमल (OPT) एल्गोरिदम में कितने पेज फ़ॉल्ट होंगे?
- A. 7
- B. 6
- C. 8
- D. 9
उत्तर: B. OPT उस पेज को हटाता है जो भविष्य में सबसे दूर प्रयोग होगा: फ़ॉल्ट 7, 0, 1, 2 (7 हटाएँ), 3 (1 हटाएँ) और 4 (0 हटाएँ) पर होते हैं; शेष हिट हैं, इसलिए 6 फ़ॉल्ट। इस स्ट्रिंग पर LRU 8 और FIFO 9 देता है।
More Computer Awareness questions
- A system has 12 tape drives. P0 holds 5 (maximum need 10), P1 holds 2 (maximum 4) and P2 holds 2 (maximum 9). Under the Banker's…
- Four processes share identical units of one resource, and each may need up to 3 units at once. What is the least number of units that…
- A counting semaphore starts at 7. Then 20 wait (P) operations and 15 signal (V) operations are performed on it. What is its final value?
- Which of these is NOT one of the three requirements a correct critical-section solution must meet?
- How does a microkernel operating system differ from a monolithic one?
- In the many-to-one threading model (many user-level threads mapped to one kernel thread), what happens when one thread makes a blocking…