g A program executes a mix of different instruction types. 25% of the instructions require two clock cycles to execute, 20% require 3 clock cycles to execute, 5% require 4 clock cycles, and the remainder all require just one clock cycle to execute. What is the average number of clock cycles per instruction?

Respuesta :

Answer:

1.8 cycles

Step-by-step explanation:

The average number of clock cycles per instruction is given by the sum of the product of each possible number of cycles by its likelihood.

1 cycle: 50%

2 cycles : 25%

3 cycles : 20%

4 cycles : 5%

[tex]Avg = 0.5*1+0.25*2+0.20*3+0.05*4\\Avg= 1.8\ cycles[/tex]

The average number of clock cycles per instruction is 1.8.

ACCESS MORE