SSC IMD SA 2017 – Question 132

Question:

A page fault occurs when

पेज फाल्ट तब होती है जब

Options:

  • The page has been corrupted by application software
  • The page is in main memory
  • The page is not in primary memory
  • One attempts to divide a number by 0
  • पृष्ठ एप्लिकेशन सॉफ़्टवेयर द्वारा करप्ट कर दिया गया है
  • पृष्ठ मुख्य मेमोरी में है
  • पृष्ठ प्रााइमरी मेमोरी में नहींं है
  • एक 0 से संख्या को विभाजित करने की कोशिश करता है

Correct Answer: c)

Explanation:

Detailed Explanation:

The correct answer is c) The page is not in primary memory (पृष्ठ प्रााइमरी मेमोरी में नहींं है).

Page Fault Mechanics:

  • In virtual memory demand paging, the CPU generates virtual memory addresses. The Memory Management Unit (MMU) consults the process’s page table to translate the virtual page number to a physical frame number.
  • Each page table entry includes a valid-invalid bit:
    • Valid (1): The page is currently resident in physical RAM (primary memory).
    • Invalid (0): The page is either illegal (out of bounds) or valid but currently residing on secondary storage (disk swap area).
  • When an access is made to a page marked invalid, the MMU triggers a hardware trap to the OS known as a Page Fault. The OS handles it by allocating a free frame, loading the required page from disk into primary memory, updating the page table, and restarting the instruction.

विस्तृत व्याख्या:

सही उत्तर c) पृष्ठ प्रााइमरी मेमोरी में नहींं है है।

पेज फॉल्ट (Page Fault):

  • वर्चुअल मेमोरी सिस्टम में पेज फॉल्ट एक प्रकार का हार्डवेयर इंटरप्ट/अपवाद (trap) है जो तब उत्पन्न होता है जब कोई प्रोग्राम किसी ऐसे पेज को एक्सेस करने का प्रयास करता है जो उस समय कंप्यूटर की प्राइमरी मेमोरी (मुख्य रैम) में मौजूद नहीं होता है।
  • पेज टेबल में उस पेज की स्थिति ‘इनवैलिड’ (अमान्य) दर्ज होती है क्योंकि वह पेज सेकेंडरी स्टोरेज (स्वैप डिस्क) पर पड़ा होता है।
  • पेज फॉल्ट होने पर ऑपरेटिंग सिस्टम उस पेज को डिस्क से उठाकर मुख्य मेमोरी के खाली फ्रेम में लाता है और फिर निर्देश को पुनः निष्पादित करता है।

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top