Question

In: Computer Science

how double buffering minimizes the idle time for devices and maximize their throughput

how double buffering minimizes the idle time for devices and maximize their throughput

Solutions

Expert Solution

Double buffering means a device which have two buffers. One buffer is used for reading and another buffer is used for writing.

  • For example, let us consider a disk is a storage device that have two buffers.Now computer monitor wants to display the data by accessing from the disk. So first disk writes the data to one buffer. This buffer transforms the data to other buffer. It means if disk writes the data to buffer1 and then buffer2 copies the data from buffer1. Now monitor reads the data in buffer 1. So while monitor reads the data from buffer1 , the next data which to be processed is filled in buffer 2.
  • By this technique, user do not require to fill the data in buffer after reading the data which is not done simultaneously.

The below diagram shows how double buffer works :

In above diagram, shows that Monitor is accessing the data from buffer 2 , and at a same time buffer1 is filling with data which to be processed next in buffer2. The both operations are done at a time .

By this technique, user can reduce the work like filling the data in buffer to be processed on monitor, reading the data from the same buffer. In this technique, user is not required to fill the data in buffer. This makes the time consuming is less because reading and writing operations are done simultaneously. By this technique, it minimizes the idle time. And Maximum throughput is achieved because of fast data transferring from disk to monitor(as shown in diagram) by using two buffers (one is filling(Writing), one is for reading) which makes the execution faster.


Related Solutions

what is the throughput time
Operator # 1 2 3 4 Batch Size 6 8 6 8 6 6 7 7 8 6 7 7 Step 1 30.25 40 29.5 40.5 29 31 35.75 36.5 40.25 30 35.25 34.5 Step 2 73 96.5 72 95.5 71.75 71 85 83 96 72.25 83 84 Step 3 66 88.5 67 89 65 66.5 78 77 87.75 65.5 77.25 76.75 Step 4 23.75 32 24.25 31.5 24.5 23.5 28 29 32.5 23 29 28.5 Step 5 96.25 127.75...
1. Producing where Marginal Revenue equals marginal cost does not maximize profit or minimizes losses. Agree...
1. Producing where Marginal Revenue equals marginal cost does not maximize profit or minimizes losses. Agree or Disagree? Why? Explain your answer and give examples. 2. Basing the determination of the short-term profit maximizing output for individual firms based on the four basic market structures by using arithmetic and graphical analysis is not effective method. Agree or Disagree? Why? Explain your answer and give examples. 3. There is no contrast of demand curve differences between the four basic market structures....
The accounting manager has requested you to calculate the throughput time, delivery cycle time, and MCE....
The accounting manager has requested you to calculate the throughput time, delivery cycle time, and MCE. The following average times have been recorded for the last four months: Average per Month (in days) Feb Mar Apr May Process time per unit 2.16 2.28 2.4 2.52 Wait time per order before start of production 24.6 22.8 21 19.2 Inspection time per unit 0.72 0.84 0.84 0.72 Move time per unit 0.48 0.48 0.36 0.48 Queue time per unit 8.04 6.96 6...
Scheduling Criteria Response Time Turn- Around Time Waiting Time Throughput CPU utilization Scenario: A call center...
Scheduling Criteria Response Time Turn- Around Time Waiting Time Throughput CPU utilization Scenario: A call center ( Several Systems are connected to a single printer through a network) Explain the scheduling criteria conflict that would occur in this scenario. Indicate factors that would impede or improve the overall utilization and performance.
How much time would it take for the stock portfolio to double in value if the...
How much time would it take for the stock portfolio to double in value if the rate of return is 9.0%? Use the rule of 70 to find the answer [just google it]. State the answer as a number with 2 decimals (for example, 13.02).
WIRESHARK - What is the throughput (bytes transferred per unit time) for the TCP connection? Explain...
WIRESHARK - What is the throughput (bytes transferred per unit time) for the TCP connection? Explain how you calculated this value. This question is based on the trace file tcp-ethereal-trace-1 in in http://gaia.cs.umass.edu/wireshark-labs/wireshark-traces.zip Thanks in advance!
How does high throughput sequencing differ from traditional sequencing methods? What makes high throughput sequencing faster...
How does high throughput sequencing differ from traditional sequencing methods? What makes high throughput sequencing faster and cheaper?
Question 2 “The percent idle time of your system is 15” Explain the sentence by giving...
Question 2 “The percent idle time of your system is 15” Explain the sentence by giving eamles of ? and µ. The Rockwell Electronics Corporation retains a service crew to repair machine breakdowns that occur on an average of ? = 3 per day (approximately Poisson in nature). The crew can service an average of µ = 8 machines per day, with a repair time distribution that resembles the exponential distribution. What is the utilization rate of this service system?...
Three barbers work at a barbershop. Based on estimations, the barbershop is idle 1 time out...
Three barbers work at a barbershop. Based on estimations, the barbershop is idle 1 time out of 15; 2/15 of the time there is one customer; 3 times out of 15 there are two customers; and 4/15 of the time, there are three customers. Each customer yields a net revenue of 10 dollars. Let X be a random variable defined as the number of customers a) Determine the probability distribution of X b) Determine the cumulative distribution function of X...
Explain how to compare water's buffering capacity to that of the weak acid or base and...
Explain how to compare water's buffering capacity to that of the weak acid or base and explain why water's buffering capacity is so much lower than the weak acid or base
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT