Question

Another different program consists of a purely sequential part that requires 20 seconds to execute on...

Another different program consists of a purely sequential part that requires 20 seconds to execute on a single-core processor. The sequential part must execute first and is followed by a parallel part containing 4 independent tasks each of which takes 12 seconds to run?

a) What is the total execution time for the entire program on the single-core processor?

b) Compared to the single-core processor, what is the actual speedup achieved by running the program on a 4-core version of the processor?

c) What speedup is predicted by Amdahl’s law for the program running on the 4-core system compared to the single-core system?

Recall that for multi-processor or multi-core systems Amdahl’s law states:

            Speedup = N / [f + N(1-f)]

where f is the fraction of the total execution time accounted for by the parallel part and N is the number of cores on the multi-core system.

Homework Answers

Answer #1

Answer a

As processor is single core, each program will be running in sequential manner whether sequential program or parallel.

Total time to execute = 20 seconds + 4*12 seconds = 68 seconds

Answer 2

Speed up can be achieved if we introduce multiple cores for parallel program to be run on. With 4 cores, sequential program will be running on one core first then after that independent 4 tasks of parallel program can be executed on individual core simultaneously.

Total time to execute = 20 Seconds + 12 seconds = 32 seconds.

Speedup = 68/32 = 2.125

Answer 3

According to Amdahl's law

Cores N = 4 cores

Fraction f = (12*4)/68 = 12/17 [Total execution time of parallel part versus total execution time]

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
A certain program consists of three independent parts A, B and C that can execute in...
A certain program consists of three independent parts A, B and C that can execute in parallel on separate processors within a multiprocessor system. None of the parts can be further subdivided and each part must execute on a single processor. Part A requires 78 billion cycles to complete, part B requires 40 billion cycles to complete and part C requires 62 billion cycles. The program is executed on an SMP system with 4 identical processors all running at the...
1. The failure of the new supply chain system affected Nike adversely. What were the reasons...
1. The failure of the new supply chain system affected Nike adversely. What were the reasons for the failure and how did the breakdown harm Nike? 2. What are the important elements to be kept in mind while implementing a new system in an organization? What is the importance of a good working relationship between partners and the sharing of responsibility in implementing critical projects? What mistakes did Nike and i2 make? 3. comment on the lessons learned and the...
Please answer the following Case analysis questions 1-How is New Balance performing compared to its primary...
Please answer the following Case analysis questions 1-How is New Balance performing compared to its primary rivals? How will the acquisition of Reebok by Adidas impact the structure of the athletic shoe industry? Is this likely to be favorable or unfavorable for New Balance? 2- What issues does New Balance management need to address? 3-What recommendations would you make to New Balance Management? What does New Balance need to do to continue to be successful? Should management continue to invest...
What tools could AA leaders have used to increase their awareness of internal and external issues?...
What tools could AA leaders have used to increase their awareness of internal and external issues? ???ALASKA AIRLINES: NAVIGATING CHANGE In the autumn of 2007, Alaska Airlines executives adjourned at the end of a long and stressful day in the midst of a multi-day strategic planning session. Most headed outside to relax, unwind and enjoy a bonfire on the shore of Semiahmoo Spit, outside the meeting venue in Blaine, a seaport town in northwest Washington state. Meanwhile, several members of...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT
Active Questions
  • Nursing Care of Patient with Peptic Ulcer Disease Abstract: Cedric Filmore, age 40, is transferred to...
    asked 4 minutes ago
  • describe the three fiscal policy tools at the government's disposal to stimulate or contract the economy....
    asked 27 minutes ago
  • i) Write the condensed electron configurations for the following ions: (a) Ca+ (b) S2- (c) V2+...
    asked 27 minutes ago
  • In Java a function can call itself(we may explore more about this later in the course).  This...
    asked 40 minutes ago
  • Write a short program,Java, that implements the Caesar substitution cipher with k=3. That is, each letter...
    asked 42 minutes ago
  • Design a function named findMax that accepts two integer values as arguments and returns the value...
    asked 48 minutes ago
  • In MIPS, I am trying to create an array of 7 words that can either be...
    asked 49 minutes ago
  • Cash, $2,000 Accounts Receivable, $1,250 Professional Equipment, $10,200 Office Equipment, $5,500 Accounts Payable, $3,500 P. Palmer,...
    asked 50 minutes ago
  • Add two more statements to main() to test inputs 3 and -1. Use print statements similar...
    asked 51 minutes ago
  • C++ program called that reads a string and check if it’s well-formed or not. ex== The...
    asked 1 hour ago
  • 1: Describe five functions of nonverbal communication. (Creating and maintaining relationships, Regulating Interaction, Influencing others, Concealing/deceiving,...
    asked 1 hour ago
  • Trucks that travel on highways have to stop at various locations to be weighed and inspected...
    asked 1 hour ago