Computer AwarenessVery hardIBPS SO IT · IBPS PO Mains

A process has 3 page frames, all empty at first, and refers to pages in the order 5, 0, 3, 5, 1, 0, 5, 2, 0, 1, 3. How many page faults occur under FIFO and under LRU replacement?

  1. A. FIFO 8, LRU 9
  2. B. FIFO 9, LRU 9
  3. C. FIFO 9, LRU 8
  4. D. FIFO 6, LRU 8

Correct answer: C. FIFO 9, LRU 8

FIFO faults on 5, 0, 3, 1, 5, 2, 0, 1, 3 = 9. LRU keeps 5 and 0 longer because they were just used and faults on 5, 0, 3, 1, 0, 2, 1, 3 = 8. Six is the count for the optimal policy.

हिंदी में

एक प्रक्रिया के पास 3 पेज फ़्रेम हैं, जो शुरू में सब खाली हैं, और वह पेजों का संदर्भ इस क्रम में देती है: 5, 0, 3, 5, 1, 0, 5, 2, 0, 1, 3। FIFO और LRU प्रतिस्थापन में कितने पेज फ़ॉल्ट होंगे?

  1. A. FIFO 8, LRU 9
  2. B. FIFO 9, LRU 9
  3. C. FIFO 9, LRU 8
  4. D. FIFO 6, LRU 8

उत्तर: C. FIFO में 5, 0, 3, 1, 5, 2, 0, 1, 3 पर फ़ॉल्ट = 9। LRU 5 और 0 को अधिक देर तक रखता है क्योंकि वे अभी प्रयोग हुए थे और 5, 0, 3, 1, 0, 2, 1, 3 पर फ़ॉल्ट = 8। छह इष्टतम नीति की गिनती है।

More Computer Awareness questions

Exams that ask this topic