Question

In: Computer Science

Amdahl's law: Suppose you ran an application on a single processor in 1.5 hours. Upon careful...

Amdahl's law: Suppose you ran an application on a single processor in 1.5 hours. Upon careful examination of the code, you found out that the application is in fact 90% parallelizable.
a) If you can run this application on a computer with 10 processors, what would be the execution time?
b) If you can run this application on a computer with an unlimited number of processors, what would be the execution time?

Solutions

Expert Solution

Solution:

Any program (or algorithm) which can be parallelized can be broken into two parts:

  • A part which cannot be parallelized
  • A part which can be parallelized

Let the total time for serial execution be T and the total time of Non-parallelizable part be N. Then, the total time of parallelizable part will be T-N.

T = N + (T - N)

According to Amdahl's law, the total execution time of the program when the parallelizable part is executed using X threads or CPUs is:

T(X) = N + (T - N) / X [where 'X' is the number of processors]

Now, in the problem stated above, it is given that an application runs on a single processor in 1.5 hours. This means the total time for serial execution is 1.5 hours. Also, the part which is parallelizable (T - N) is 90%. Therefore, the part which is non-parallelizable (N) is 10%.

(a) If the application is ran on a computer with 10 processors, then X = 10.

Let us assume that the serial execution be done in x minutes.

Therefore, parallelized execution will take, T(10) = 0.1x + (0.9x)/10 = 0.1x + 0.09x = 0.19x

Now, if x actually is equivalent to execution time of 1.5 hours = 90 mins, then 0.19x will be equivalent to execution time of 0.19 * 90 minutes = 17.1 minutes

Answer: If the application is run on a computer with 10 processors, then the execution time will be 17.1 minutes.

(b) If the application is ran on a computer with unlimited processors, then X = infinity (inf).

Let us assume that the serial execution be done in x minutes.

Therefore, parallelized execution will take, T(inf) = 0.1x + (0.9x)/inf = 0.1x + 0 = 0.1x

Now, if x actually is equivalent to execution time of 1.5 hours = 90 mins, then 0.1x will be equivalent to execution time of 0.1 * 90 minutes = 9 minutes

Answer: If the application is run on a computer with unlimited processors, then the execution time will be 9 minutes.


Related Solutions

If you upgrade to a 30% faster processor, will your application run 30% faster? Explain your...
If you upgrade to a 30% faster processor, will your application run 30% faster? Explain your answer.
Answer the Following - Suppose you are designing an application. This application of yours is time...
Answer the Following - Suppose you are designing an application. This application of yours is time sensitive (i.e., media application). Which protocol would you use UDP or TCP? Why? - Why do HTTP, FTP, SMTP, and POP3 run on top of TCP rather than on UDP? - Explain initial transfer of home page and how many RTT required? - In terms of RTT, how quickly your browser downloads the base page for www.hamburger.com and all the embedded objects under following...
18. Suppose you ran a between-subjects ANOVA in a study that had 3 levels of the...
18. Suppose you ran a between-subjects ANOVA in a study that had 3 levels of the independent variable, with 5 subjects assigned to each level. As part of your analysis, you calculated the following results: SStotal=1216. 738, SSbetween=787.930, and SSwithin=428.808. Calculate the F ratio. Was there a statistical difference between the three groups at the α=.05 significance level? 19. What is the effect size for the study described in Question 18? Is this a small, medium, or large effect size...
Suppose a single parent can work up to 16 hours per day at a wage rate...
Suppose a single parent can work up to 16 hours per day at a wage rate of $10 per hour. Various income maintenance programs have been developed to assure a minimum level of income for low-income families. Aid to Families with Dependent Children (AFDC) was established with the Social Security Act of 1935. The family was given an income subsidy depending on fam-ily size. Under this program, the family’s benefi t was reduced by $1 for every dollar earned. Suppose...
Suppose you are responsible for a project to build an application that is going to collect...
Suppose you are responsible for a project to build an application that is going to collect all the training opportunities for any summer training program. The purpose of the application is to allow the user to search for the most suitable opportunity for him using different search criteria such as GPA and salary. How you would make a Risk Management plan for such a project? I want a Risk Management plan for this project. thanks.
Suppose you ran your elevator simulation program N times with different random number seeds to generate...
Suppose you ran your elevator simulation program N times with different random number seeds to generate N independent measurements of the average travel time X1, X2,⋅⋅⋅, XN a. State the correct formula for the 95% confidence interval for the global average travel time across all N runs assuming that each run of your simulation program was long enough to assume that the average travel times across different runs have an i.i.d. normal distribution. [HINT: Remember to use the t-distribution, because...
Suppose you set aside $10,000 today in a CD generating 1.5% annually. What will it be...
Suppose you set aside $10,000 today in a CD generating 1.5% annually. What will it be worth in 8 years? Select one: a. $10,000 b. $11,200 c. $11,264 d. $14,469
Suppose that you have developed a new communication device that builds upon the technology of existing...
Suppose that you have developed a new communication device that builds upon the technology of existing smartphones. a. Which form(s) of intellectual property would you use to protect the idea and why? Would you use multiple forms? b. Are there any potential issues regarding the manufacturing of your new product?
You must answer this question using the ILAC (Issues, Law, Application and Conclusion) method. Boris Johnstoned...
You must answer this question using the ILAC (Issues, Law, Application and Conclusion) method. Boris Johnstoned is 65 years old and works at the Brisbane branch of ‘British Bank’, as a qualified senior accountant. He has been working for the bank as an accountant since he graduated from Oxford University, in England during the late 1970’s. He enjoys his job, and recently decided that he would like to keep working until at least 70 years of age because his superannuation...
1.5 Suppose you believe that, in general, graduates who have majored in your subject are offered...
1.5 Suppose you believe that, in general, graduates who have majored in your subject are offered higher salaries upon graduating than are graduates of other programs. Describe a statistical experiment that could help test your belief. 1.6 You are shown a coin that its owner says is fair in the sense that it will produce the same number of heads and tails when flipped a very large number of times. a.Describe an experiment to test this claim. b. What is...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT