SSC IMD SA 2017 – Question 138

Question:

The address of a page table in memory is pointed to by:

मेमोरी में एक पेज टेबल का एड्रेेस किसके द्वारा इंगित होता है

Options:

  • Stack pointer
  • Page table base register
  • Page register
  • Program counter
  • स्टेक पॉइंटर
  • पृष्ठ टेबल आधार रजिस्टर
  • पृष्ठ रजिस्टर
  • प्रोोग्रााम काउंटर

Correct Answer: b)

Explanation:

Detailed Explanation:

The correct answer is b) Page table base register (पृष्ठ टेबल आधार रजिस्टर – PTBR).

In paged virtual memory systems, the operating system maintains a page table for each running process to map logical page numbers to physical frame numbers.

  • Page-Table Base Register (PTBR): A dedicated hardware CPU register that points directly to the starting physical address (base address) of the active process’s page table in main memory.
  • During a context switch, the operating system simply reloads the PTBR with the base address of the incoming process’s page table, which allows fast switching without copying entire page tables.
  • Along with PTBR, modern architectures often use the Page-Table Length Register (PTLR) to indicate the size of the page table and ensure memory access bounds checking.

Why Other Options are Incorrect:

  • Stack Pointer (SP): Points to the top of the call stack in memory, managing local variables and function call return addresses.
  • Page Register: A generic term; does not specifically denote the CPU register holding the page table base address.
  • Program Counter (PC): Holds the memory address of the next instruction to fetch and execute.

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

सही उत्तर b) पृष्ठ टेबल आधार रजिस्टर (Page Table Base Register – PTBR) है।

पेज्ड वर्चुअल मेमोरी प्रणाली में, प्रत्येक प्रोसेस की पेज टेबल मुख्य मेमोरी (RAM) में संग्रहीत होती है:

  • पेज टेबल बेस रजिस्टर (PTBR): यह सीपीयू का एक विशेष हार्डवेयर रजिस्टर होता है जो मुख्य मेमोरी में वर्तमान में चल रही प्रोसेस की पेज टेबल के आधार पते (Base Address) को इंगित करता है।
  • जब ऑपरेटिंग सिस्टम कॉन्टेक्स्ट स्विचिंग (Context Switching) करता है, तो वह केवल इस रजिस्टर (PTBR) में नई प्रोसेस की पेज टेबल का प्रारंभिक पता लोड कर देता है, जिससे स्विचिंग अत्यंत तीव्र गति से होती है।
  • इसके साथ PTLR (Page Table Length Register) का उपयोग पेज टेबल के आकार की सीमा जांचने के लिए किया जाता है।

अन्य विकल्पों का विश्लेषण:

  • स्टैक पॉइंटर (Stack Pointer): यह कॉल स्टैक के शीर्ष (top of stack) के पते को इंगित करता है।
  • प्रोग्राम काउंटर (Program Counter): यह अगले निष्पादित होने वाले निर्देश का पता रखता है।

Leave a Comment

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

Scroll to Top