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...
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?
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?.
Suppose the marginal damage of carbon pollution is constant, equal $40/ton. If you create a carbon...
Suppose the marginal damage of carbon pollution is constant, equal $40/ton. If you create a carbon tax, what should be its value so that we maximize social welfare? Suppose the marginal cost of carbon abatement (reducing pollution) is given by P = 10 + Q, with P measured in $/ton and Q measured in tons. If we want to create a cap and trade program that is equivalent to the tax above (maximizing social welfare), how many tons (Q) should...
Anela is a computer scientist who is formulating a large and complicated program for a type...
Anela is a computer scientist who is formulating a large and complicated program for a type of data processing. She has three ways of storing and retrieving data: cloud storage, disk, or hard drive. As an experiment, she sets up her program in three different ways: one using cloud storage, one using disks, and the other using a hard drive. Then she makes four test runs of this type of data processing on each program. The time required to execute...
a)Program a calculator or computer to use Euler's method to compute y(1), where y(x) is the...
a)Program a calculator or computer to use Euler's method to compute y(1), where y(x) is the solution of the given initial-value problem. (Give all answers to four decimal places.) dy dx + 3x2y = 9x2, y(0) = 4 h = 1     y(1) = h = 0.1     y(1) = h = 0.01     y(1) = h = 0.001     y(1) = (b) Verify that y = 3 + e−x3 is the exact solution of the differential equation. y = 3 + e−x3      ⇒     y'...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT