If an instruction takes microseconds and a page fault takes an additional microseconds, the effective instruction time if on the average a page fault occurs every instruction is:
View worked solution
Answer: A
To find the effective instruction execution time, we can analyze the average time spent over a sequence of instructions.
According to the given information:
- Each instruction takes a base execution time of microseconds.
- A page fault occurs once every instructions on average.
- Each page fault incurs an additional overhead of microseconds.
Let us calculate the total time taken to execute instructions:
- The base execution time for instructions is:
- Since one page fault occurs every instructions, the additional overhead for these instructions is:
Thus, the total time to execute instructions is:
The effective instruction time () is the average time per instruction:
Therefore, the correct option is A.
Free practice · Your answers on this page are not saved.
