Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. (12.5 pts) A program P1 is executed on microprocessors A and B and the execution time is 311 sec and 513 sec, respectively. nce

image text in transcribedimage text in transcribedimage text in transcribedimage text in transcribed

1. (12.5 pts) A program P1 is executed on microprocessors A and B and the execution time is 311 sec and 513 sec, respectively. nce of B compared to (a) Based on these measurements, what is the relative performance of B compared to A, i.e., perfrel,B(P1),A(P1) ? (b) Given the solution to (a), we can say that B on P1 is _% slower than A on P1. Hint: In calculating the percentage use texec,A(P) and texec,B(Pi). be part in roleuating the 2. (25 pts) A program P2 is run on a Unix system C using the time P2 command. The output is, real user system 113m43.0895 31m11.872s 12m5.643s (a) What is the execution time, in seconds? (b) How many seconds did the system spend executing OS code? (c) How many seconds did the system spend executing just the the instructions of P2? (d) How many seconds were involved in activities such as reading from the disk, displaying output on the terminal window, and waiting for user input from the keyboard? We will refer to this time as overhead. 3. (6.25 pts) Continuing Exercise 2, the clock frequency of system C is 2 GHz. How many CPU clock cycles were spent executing the instructions of P2, i.e, excluding OS and overhead clock cycles? 4. (6.25 pts) A program P3 is executed on computer system D, also with a 2 GHz clock frequency. The number of instructions that were executed (just the instructions of P3, excluding OS and overhead instructions) was 37,853,911, 064. A programmer writes code to access a processor performance monitoring register after the program completes, and this register indicates that the average CPI was 0.642. How many seconds did the CPU spend executing the instructions of P3? 1. (12.5 pts) A program P1 is executed on microprocessors A and B and the execution time is 311 sec and 513 sec, respectively. nce of B compared to (a) Based on these measurements, what is the relative performance of B compared to A, i.e., perfrel,B(P1),A(P1) ? (b) Given the solution to (a), we can say that B on P1 is _% slower than A on P1. Hint: In calculating the percentage use texec,A(P) and texec,B(Pi). be part in roleuating the 2. (25 pts) A program P2 is run on a Unix system C using the time P2 command. The output is, real user system 113m43.0895 31m11.872s 12m5.643s (a) What is the execution time, in seconds? (b) How many seconds did the system spend executing OS code? (c) How many seconds did the system spend executing just the the instructions of P2? (d) How many seconds were involved in activities such as reading from the disk, displaying output on the terminal window, and waiting for user input from the keyboard? We will refer to this time as overhead. 3. (6.25 pts) Continuing Exercise 2, the clock frequency of system C is 2 GHz. How many CPU clock cycles were spent executing the instructions of P2, i.e, excluding OS and overhead clock cycles? 4. (6.25 pts) A program P3 is executed on computer system D, also with a 2 GHz clock frequency. The number of instructions that were executed (just the instructions of P3, excluding OS and overhead instructions) was 37,853,911, 064. A programmer writes code to access a processor performance monitoring register after the program completes, and this register indicates that the average CPI was 0.642. How many seconds did the CPU spend executing the instructions of P3

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions