Question

In: Computer Science

Robin, Bryan, Finchie, and Dan each have messages to send via carrier pigeon. There are three...

Robin, Bryan, Finchie, and Dan each have messages to send via carrier pigeon. There are three ordered stages to sending a message via carrier pigeon:: 1. 25 minutes of Writing the message 2. 10 minutes of Fanning the ink dry 3. 15 minutes of Catching and sending a pigeon Notes: There is only one pen to share There is also only one fan (without it the ink will never dry) There are multiple pigeons but only one can be caught at a time (They startle easily) Fanning must happen before catching a pigeon (or it will fly off.. startled) (hint: Draw timeline diagrams to calculate the total times etc)

How long does it take for all to send messages sequentially? How long does it take for all of them to send messages pipelined?

How and why does pipelining help with the throughput of entire workloads?

The workloads involved in sending 4 messages as described above, in comparison to sending 4 messages sequentially?

Can pipelining help reduce the latency of any one step in the 4 people sending a message scenario as described above? Show how the pipeline rate is limited by the slowest pipeline stage.

Solutions

Expert Solution

a)Following symbols are used in the timeline diagrams:

W-Writing,F-Fanning,C-Catching and Sending Pigeon.

Time Required for Sequential execution of the tasks(minutes) 25 10 15 25 10 15 25 10 15 25 10 15 Total Time=200minutes
Robin W F C
Bryan W F C
Finchie W F C
Dan W F C

In pipelined execution of the task, a pipeline stage will take maximum duration of the task executed in that stage.

Time Required for pipelined execution of the task(minutes) 25 25 25 25 15 15 Total Time=130minutes
Robin W F C
Bryan W F C
Finchie W F C
Dan W F C

B)When pipelining is used,throughput increases.This is because pipelining allows the tasks to be executed in parellel,without being wasting the time by sitting idle.For example,in the given case,once Robin has completed writing his message by using the only pen available,Bryan could use the pen while Robin moves on to Fanning the message.By exploiting the parallel execution,pipelining can reduce the total time required for the execution of the combined tasks and thus increase the overall throughput.

This is obvious from the given example.The workloads involved in sending 4 messages take only 130 minutes in comparison to the 200 minutes required in sending 4 messages sequentially.

C)Pipelining will not reduce the latency of any single pipeline stage.In fact,it may increase the latency of a single pipeline stage.This is illustrated in the above mentioned pipelined execution of the task table.

As shown in the timeline diagram given above,Robin requires minimum of 25 minutes for Fanning ,instead of the actual 10minutes required when messages are sent sequentially.Similarly,Robin requires minimum of 25minutes for catching and sending pigeon,instead of the actual 15minutes required when messages are sent sequentially.As it is evident from the example,pipelining will not reduce the latency of a single pipeline stage.

The pipeline rate is always limited by the slowest pipeline stage.As illustrated in the above pipeline stages,Robin takes 25 minutes each for,writing,Fanning and Catching and Sending Pigeon for sending his message for a total of 75 minutes,instead of the 50 minutes required while sending the message in sequential.This happens because the latency of each individual pipeline stages must wait until the slowest pipeline stage is completed before proceeding to the next pipeline stage.


Related Solutions

Task 5 - Pipelining (20 marks) Robin, Bryan, Finchie, and Dan each have messages to send...
Task 5 - Pipelining Robin, Bryan, Finchie, and Dan each have messages to send via carrier pigeon. There are three ordered stages to sending a message via carrier pigeon:: 1. 25 minutes of Writing the message 2. 10 minutes of Fanning the ink dry 3. 15 minutes of Catching and sending a pigeon Notes: There is only one pen to share There is also only one fan (without it the ink will never dry) There are multiple pigeons but only...
Two transmitters send messages through bursts of radio signals to an antenna. During each time slot...
Two transmitters send messages through bursts of radio signals to an antenna. During each time slot each transmitter sends a message with probability 1/2. Simultaneous transmissions result in loss of the messages. Let X be the number of time slots until the first message gets through. (a) Describe the underlying sample space S of this random experiment and specify the probabilities of its elementary events. (b) Show the mapping from S to the range of X. (c) Find the probabilities...
Computing AGI Michael and Sabrina are married and have three children, Amara, Bryan, and Skyla. They...
Computing AGI Michael and Sabrina are married and have three children, Amara, Bryan, and Skyla. They live at 120 Main Street, Flushing NY 11425. Michael is a law professor, working at Brooklyn College. Sabrina is currently unemployed. The following is a list of information for Michael and Sabrina Brown for the tax year 2019. Michael wages – 80,000 Interest from Chase savings account – 500 Interest from NYS municipal bonds - 250 Rental income – 25,000 Rental operating expenses –...
Assignment 9 – Computing Credits Michael and Diana are married and have three children, Amara, Bryan,...
Assignment 9 – Computing Credits Michael and Diana are married and have three children, Amara, Bryan, and Skyla, ages 16, 14, and 8 respectively. They live at 120 Main Street, Flushing NY 11425. Michael is a teacher working for BMCC’s Business department. Diana works part-time for Creation, a genetic research lab. During 2019, Michael and Diana earned $52,000 in wages and $500 in interest income. Assume for 2019, Michael and Diana are filing a joint return and all their children...
Assignment 6 – Computing AGI Michael and Sabrina are married and have three children, Amara, Bryan,...
Assignment 6 – Computing AGI Michael and Sabrina are married and have three children, Amara, Bryan, and Skyla. They live at 120 Main Street, Flushing NY 11425. Michael is a law professor, working at BMCC – CUNY. Sabrina is currently unemployed. The following is a list of information for Michael and Sabrina Brown for the tax year 2019. Michael wages – 80,000 Interest from Chase savings account – 500 Interest from NYS municipal bonds - 250 Rental income – 25,000...
What is the amount that Dan would have to pay Lachlan so that each received half of the total extra gains from chopping down the tree?
Lachlan has a Jacaranda growing in his yard. One of the tree limbs is growing over into Dan’s property. Dan does not like this and wants Lachlan to chop down the tree. Their respective benefits are shown below:   Keeping Tree Chopping Down TreeGains to Lachlan ($) 1000    500Gains to Dan ($)    100    1,006Total ($) 1100What is the amount that Dan would have to pay Lachlan so that each received half of the total extra gains from chopping...
In a three-digit lottery, each of the three digits is supposed to have the same probability...
In a three-digit lottery, each of the three digits is supposed to have the same probability of occurrence (counting initial blanks as zeros, e.g., 32 is treated as 032). The table shows the frequency of occurrence of each digit for 90 consecutive daily three-digit drawings.      Digit Frequency 0 26 1 18 2 35 3 22 4 16 5 30 6 35 7 32 8 24 9 32 Total 270 (a) Calculate the chi-square test statistic, degrees of freedom, and...
In a three-digit lottery, each of the three digits is supposed to have the same probability...
In a three-digit lottery, each of the three digits is supposed to have the same probability of occurrence (counting initial blanks as zeros, e.g., 32 is treated as 032). The table shows the frequency of occurrence of each digit for 90 consecutive daily three-digit drawings.      Digit Frequency 0 26 1 23 2 29 3 38 4 30 5 26 6 26 7 20 8 27 9 25 Total 270 (a) Calculate the chi-square test statistic, degrees of freedom, and...
You have had a portfolio made up of three assets. For each of these three assets,...
You have had a portfolio made up of three assets. For each of these three assets, pricing data are below: Price at the end of Common stock A Preferred Stock B Coupon Bond C year 0 $28 $100 $1,040 year 1 $30 $100 $1,050 year 2 $35 $102 $1,040 year 3 $41 $103 $1,050 year 4 (now) $44 $105 $1,060 The common stock pays a common dividend of $2 at the end of each year. The preferred stock pays a...
Three patients have made appointments to have their blood pressure checked at a clinic. As each...
Three patients have made appointments to have their blood pressure checked at a clinic. As each patient is selected, he/she is tested. If he/she has high blood pressure, a success (S) occurs; if he/she does not have high blood pressure, a failure (F) occurs. Let x be the number of persons who have high blood pressure (i.e., Let x represent the number of successes among the three sampled persons). a. How many outcomes should you have from this probability experiment?...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT