Answer:
a. 5.81
B. 7.93
Step-by-step explanation:
A.
X is the time it takes to load instructions from cache
10X = time to execute program
0.08 = probability of cache instructions
1-0.08 = 0.92(92% instructions are going to be loaded from cache).
Tc = time to execute with cache
Tc = 0.92X+0.08x10X
= 0.92X+0.8X
= 1.72X
Speed factor = tm/tc
= 10X/1.72X
= 5.81
B.
If cache is 20 times faster
Tm = 20X
Tc = 0.92X + 0.08 x 20X
= 0.92X + 1.6X
= 2.52X
Speed factor = 20X/2.52X
= 7.93