Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

(a) Consider a program P, which contains two different loops, Loop-A and Loop-B. When a user runs P, on a processor, Loop-A iterates 10 times

image text in transcribed

(a) Consider a program P, which contains two different loops, Loop-A and Loop-B. When a user runs P, on a processor, Loop-A iterates 10 times and each Loop-A iteration has 5 instructions. In comparison, Loop-B iterates only twice but each Loop-B iteration has 25 instructions. Thus, both Loop-A and Loop-B execute the same total number of instructions (50). Which of the two loops do you expect to have more instruction cache hits? Why? (b) The cache block size in many computers is in the range of 32 to 128 bytes. What would be the main advantages and disadvantages of making the size of cache blocks larger or smaller

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

PC Magazine Guide To Client Server Databases

Authors: Joe Salemi

1st Edition

156276070X, 978-1562760700

More Books

Students also viewed these Databases questions