Purchase Solution

Polling, Instructions executed per second

Not what you're looking for?

Ask Custom Question

Machine M runs at 3 GHz. When running program P, its
CPI = 1.5.

(a) How many instructions will be executed during 1 second while running program P?

(b) While running program P, the mouse has to be polled 30 times per second. The polling routine requires executing 200 instructions with a CPI of 2. What is the overhead, that is, the fraction of time used in polling the mouse? Is it significant?

Purchase this Solution

Solution Summary

This solution provides steps to answer the algorithmic questions.

Solution Preview

Machine M runs at 3 GHz, means it is running at 3 G cycles/second. For sake of simplicity we will consider 1 G = 10^9 here.

(a) Given that cycles per instruction (CPI) for program P is 1.5, so number of instructions executed during 1 second when running program P = 3*10^9 cycles/second / 1.5 cycles/instruction
= ...

Purchase this Solution


Free BrainMass Quizzes
Basic Computer Terms

We use many basic terms like bit, pixel in our usual conversations about computers. Are we aware of what these mean? This little quiz is an attempt towards discovering that.

Inserting and deleting in a linked list

This quiz tests your understanding of how to insert and delete elements in a linked list. Understanding of the use of linked lists, and the related performance aspects, is an important fundamental skill of computer science data structures.

Word 2010: Tables

Have you never worked with Tables in Word 2010? Maybe it has been a while since you have used a Table in Word and you need to brush up on your skills. Several keywords and popular options are discussed as you go through this quiz.

Javscript Basics

Quiz on basics of javascript programming language.

Java loops

This quiz checks your knowledge of for and while loops in Java. For and while loops are essential building blocks for all Java programs. Having a solid understanding of these constructs is critical for success in programming Java.