Question

Suppose a computer program has a method that cannot be parallelized and the method accounts for...

Suppose a computer program has a method that cannot be parallelized and the method accounts for 40% of the programs execution time. What is the limit on the overall speedup that can be achieved on an 10-processor machine? Is there a limit if we can use as many processors as we want.

Homework Answers

Answer #1

Q-> Suppose a computer program has a method that cannot be parallelized and the method accounts for 40% of the programs execution time.

Given:

n = no of processors = 10

p = fraction of parallel code = 60% = 0.6

.

a) What is the limit on the overall speedup that can be achieved on an 10-processor machine?

speedup = 1/(1-p + p/n) = 1/ (0.4 + 0.6/10) = 2.173

So, speedup when using 10 processors is around 2.2

.

b) Is there a limit if we can use as many processors as we want.

Yes, this limit is calculated using amdahl's law:

speedup = 1/(1-p) = 1 / 0.4 = 2.5

So, maximum speedup of 2.5 can be achieved even if infinite processors are used.

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Computer A has an overall CPI of 1.3 and can be run at a clock rate...
Computer A has an overall CPI of 1.3 and can be run at a clock rate of 600MHz. Computer B has a CPI of 2.5 and can be run at a clock rate of 750 Mhz. We have a particular program we wish to run. When compiled for computer A, this program has exactly 100,000 instructions. How many instructions would the program need to have when compiled for Computer B, in order for the two computers to have exactly the...
Assume that we are considering enhancing a machine by adding vector hardware to it. When a...
Assume that we are considering enhancing a machine by adding vector hardware to it. When a computation is run in vector mode on the vector hardware, it is 8 times faster than normal mode of execution. We call the percentage of time that can be spent using vector mode the percentage of vectorization. What is the speedup if the percentage of vectorization is 50%? What percentage of vectorization is needed to achieve a speedup of 8? What percentage of the...
When a program is run on Computer X, 50% of the execution time is CPU time...
When a program is run on Computer X, 50% of the execution time is CPU time . A better Computer Y reduces the execution time by 10%. It is know that Computer Y has a clock rate of 2.3 GHz, and it takes Computer Y 20% more clock cycles to execute the program. In addition, Computer Y can only reduce CPU time. What is the clock rate in GHz of Computer X?
When a program is run on Computer X, 65% of the execution time is CPU time....
When a program is run on Computer X, 65% of the execution time is CPU time. A better Computer Y reduces the execution time by 10%. It is known that Computer Y has a clock rate of 2.7 GHz, and it takes Computer Y 10% more clock cycles to execute the program. In addition, Computer Y can only reduce CPU time. What is the clock rate in GHz of Computer X? The answer must have exactly one digit after the...
An educator has written a computer program to automate a repetitive task. Due to the nondeterministic...
An educator has written a computer program to automate a repetitive task. Due to the nondeterministic nature of the task, the program takes various amounts of time to run. The running times, in seconds, of n =30 iterations of the program are given below. 38.65 44.06 41.47 35.64 33.05 40.85 41.28 34.11 34.05 43.16 36.66 37.66 44.92 39.13 47.01 39.36 43.05 37.45 51.11 45.72 38.18 35.04 40.97 47.89 37.96 37.28 43.28 31.92 34.87 37.53 (a) Based on these data, construct...
Suppose we are thinking about replacing a series of old computer systems with new computers. The...
Suppose we are thinking about replacing a series of old computer systems with new computers. The old ones cost us $420,000 one year ago and is depreciated at a rate of $140,000 a year and will be completely written off in 3 years.It can be sold for $190,000 now or sold for $80,000 in two years. The new machine will cost $368,000 a year and will be depreciated at a rate of 10% a year. It is expected to be...
Suppose we are thinking about replacing a series of old computer systems with new computers. The...
Suppose we are thinking about replacing a series of old computer systems with new computers. The old ones cost us $420,000 one year ago and is depreciated at a rate of $140,000 a year and will be completely written off in 3 years.It can be sold for $190,000 now or sold for $80,000 in two years. The new machine will cost $368,000 a year and will be depreciated at a rate of 10% a year. It is expected to be...
Suppose that the time to failure (in hours) of hard drives in a personal computer can...
Suppose that the time to failure (in hours) of hard drives in a personal computer can be modelled by an exponential distribution with λ = 0.002. Use Monte Carlo simulation, or otherwise, to approximate the following: Assume a computer now has three independent hard-drives and the failure of the computer occurs once all three hard drives have died. What is the mean life of the computer?
Computer archieture 1. Let us assume we have such a machine. The physical RAM has 32...
Computer archieture 1. Let us assume we have such a machine. The physical RAM has 32 bytes, and is evenly divided into 4 pages. The virtual memory has 16 pages. The content in the page table and physical RAM is shown below Physical RAM Page Num Page data 3 11 ~QWERTYU 2 10 IOPASDFG 1 01 HJKLZXCV 0 00 BNM<>[]? Page table 15 0 14 0 13 0 12 1 01 11 0 10 0 9 1 11 8 0...
A program has runtime proportional to (log n)7 where n is the input size. Suppose we...
A program has runtime proportional to (log n)7 where n is the input size. Suppose we run the program with input size 10 and the runtime is 35 ms. What will the new  runtime be in seconds when we increase the input size to ten billion?.