Consider a computer running a program that requires 250 s wi
Consider a computer running a program that requires 250 s, with 70 s spent executing FP instructions, 85 s executed L/S instructions, 55 s spent executing branch instructions, and 40 s spent executing INT instructions. By how much is the total time reduced if the time for FP operations is reduced by 20%? By how much is the time for L/S operations reduced if the total time is reduced by 20%? Can the total time can be reduced by 20% by reducing only the time for INT instructions?
Solution
Solution:
1) Calculating the reduction in time for FP instructions we get:
(20/100)*70 = 14
Reduction in total time will be :
(14/250) * 100 = 5.6%
2) To calculte the 20% of total time
(20/100) *250 = 50s
now, reduction in L/S will be calculated as follows:
(50/85) * 100 =59%
3) It is not possible because in second part we calculated that 20% of total instructions comes upto 50s. In the question it is given that INT instructions are only taking 40s which are already less than 50s.
