A processor has a branch?target buffer. If a branch is in the buffer and it is correctly predicted, there is no branch penalty. The prediction rate is 85% correct. If it is incorrectly predicted, the penalty is 4 cycles. If the branch is not in the buffer, and not taken, the penalty is 2 cycles. Seventy percent of branches are taken. If the branch is not in the buffer and is taken the penalty is 3 cycles. The probability that a branch is in the buffer is 90%. What is the average branch penalty?
What will be an ideal response?
Branch penalty = mispredict penalty (in buffer) + taken penalty (not in buffer) + not taken penalty (not in buffer) =
90% × 15% × 4 + 10% × 70% × 3 + 10% × 30% × 2
= 0.54 + 0.21 + 0.06 = 0.81 cycles per branch.
You might also like to view...
MC By default, the first entry in a Menu is__________ .
a) a blank separator. b) a dashed separator. c) the first menu item. d) None of the above.
Which of the following is NOT true when dealing with international data?
A) Not all cultures around the world break names into first and last. B) Design the database in such a way that other naming practices can fit into the database. C) Designing database fields to accommodate all of the different cultures in the world is challenging. D) Because businesses today are global, designing a database sensitive to all global cultures is imperative.
Many-to-many entity relationships exist when one entity can be related to more than one other entity, and those entities can be related to multiple entities of the same type as the original entity.
Answer the following statement true (T) or false (F)
If you want a function to modify the value stored in a variable, how do you need to pass the variable?
A. by value B. by reference C. by invocation D. by parameter