Question
Consider two processors and executing the same instruction set. Assume that under identical conditions, for the same input, a program running on takes 25% less time but incurs 20% more CPI (clock cycles per instruction) as compared to the program running on . If the clock frequency of is 1GHz, then the clock frequency of (in GHz) is _________.
Official answer and solution
- Official answer
- 1.6
- From
- Official GATE 2014 answer key
Solution
Relate CPU execution time to instruction count, clock cycles per instruction (CPI), and clock frequency.
The basic CPU execution time equation is:
where is instruction count, is cycles per instruction, and is clock frequency.
Given conditions for and :
- Same instruction set and identical program input .
- takes 25% less time than :
- incurs 20% more CPI than :
- Clock frequency of : .
Taking the ratio of execution times:
Substitute the known ratios:
Solve for :
Thus, the clock frequency of is .
1.6
Dividing instead of solving for in the denominator.
The answer is the one in the official GATE answer key. The solution is this site's own explanation.
Source
- Paper
- GATE 2014 Computer Science and Information Technology (CS) Session 1
- Question
- 65 of 65, printed as CS Q.55
- Section
- Computer Science and Information Technology
Report an error in this question
GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.