Skip to content
Official PYQ · 1998

GATE CS 1998 Q2.18 — Memory Management and Virtual Memory

Explain with AI

If an instruction takes ii microseconds and a page fault takes an additional jj microseconds, the effective instruction time if on the average a page fault occurs every kk instruction is:

Choose one option
View worked solution

Answer: A

To find the effective instruction execution time, we can analyze the average time spent over a sequence of kk instructions.

According to the given information:

  • Each instruction takes a base execution time of ii microseconds.
  • A page fault occurs once every kk instructions on average.
  • Each page fault incurs an additional overhead of jj microseconds.

Let us calculate the total time taken to execute kk instructions:

  1. The base execution time for kk instructions is: Tbase=k×i microsecondsT_{\text{base}} = k \times i \text{ microseconds}
  2. Since one page fault occurs every kk instructions, the additional overhead for these kk instructions is: Toverhead=1×j=j microsecondsT_{\text{overhead}} = 1 \times j = j \text{ microseconds}

Thus, the total time to execute kk instructions is: Ttotal=k⋅i+jT_{\text{total}} = k \cdot i + j

The effective instruction time (TeffT_{\text{eff}}) is the average time per instruction: Teff=Ttotalk=k⋅i+jk=i+jkT_{\text{eff}} = \frac{T_{\text{total}}}{k} = \frac{k \cdot i + j}{k} = i + \frac{j}{k}

Therefore, the correct option is A.

Free practice · Your answers on this page are not saved.

Published
Report a correction
Keep exploringMore Memory Management and Virtual Memory questions