Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

2. [25 points] (a) [9 points] [5 points for correct answer 4 points for showing

ID: 3743854 • Letter: 2

Question

2. [25 points] (a) [9 points] [5 points for correct answer 4 points for showing how you got that answer, convincingly and in detai/| Given the execution times of Programs 1, 2, 3, and 4, on each of Computers . B. and C. which computer hould you conclude is the fastest overall? (refer to Table 1) Table 1 Program 1 Program 2 Program 3 Program -4 Computer A Computer B Computer C time (s) 200 300 800 100 tme (s 100 500 400 200 time (s) 300 700 300 150 b) [8 points 4 points for correct answer + 4 points for showing how you got that answer, comvincinghy and in detail Consider the same data from part (a) / Table 1, above. A computer user is trying to decide which computer to buy. She knows that she runs Programs 2 and 4 about three times as often as Programs 1 and 3. Which computer should she buy? (c) [8 points 4 points for correct answer + 4 points for showing how you got that answer, comvincinghy and in detail Table 2 shows instructions-per-cycle (IPC) for three Computers X. Y, and Z, on each of programs 5, 6, 7, and 8. Which computer is fastest overall? Assume that using onhy IPC to compare performance is valid in this case, because all three computers implement the same instruction set architecture, execute the same program binaries (hence, identical dynamic instruction count), and have the same processor frequency, hence, cycle time. Table 2. Note: higher IPC (lower CPD means higher performance. Computer XComputer Y Computer Z IPC 8.00 0.50 0.25 8.00 Program 5 Program 6 Program '7 Program 8 IPC 1.00 2.00 3.00 4.00 IPC 4.00 3.00 2.50 5.00

Explanation / Answer

2)

a)

computer A to run all programs

total time = 100+500+400+200

total time = 1200 seconds

computer B to run all programs

total time = 1400 seconds

computer C to run all programs

total time = 1450 seconds

computer A finish all programs faster than all three.. so

Computer A is overal fastest

b)

when she runs programs 2 and 4 three times as often than others then

computer A to run all programs

remember 2 and 4 occur 3 times as program 1 and 2 need to execute so

total time = 100 + 3(500) + 400 + 3(200)

total time = 2600 seconds

computer B to run all programs

total time = 2200 seconds

computer C to run all programs

total time = 3150 seconds

Computer B is fasters so she should by comuter B

c)

IPC give the average number of instructions executed per each cycle

more instructions means more perfomance and more speed

computer X to run all programs or execute 8 instructions

let us say each program have 8 inctructions commanly

now total cycles required = 8 + 4 + 3 + 2 = 17

computer Y to run all programs or execute 8 instructions

total cycles required = 1 + 16 + 32 + 1 = 50

computer Z to run all programs or execute 8 instructions

total cycles required = 2 + 3 + 4 + 2 = 11

Computer Z is overall fastest here.. she should by computer Z

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote