Question

In: Computer Science

Explain how a read I/O operation happens in 2 scenarios: with DMA and without DMA. Clearly...

Explain how a read I/O operation happens in 2 scenarios: with DMA and without DMA. Clearly explain how the I/O device and the CPU works concurrently in both cases. Explain through an example showing the steps of the protocols and the algorithms underneath.

Solutions

Expert Solution

I/O operation is transferring the information from internal storage(RAM) to external I/O devices(monitor,keyboard,mouse,hard disk).This operation is used to provide a communication link between CPU and peripherals.

There are majorly three possible ways to transfer the data:

1 Programmed I/O

2.Interrupt initiated I/O

3.Direct Memory Access

Let's discuss each mode in detail

1.Programmed I/O:It is a set of instructions that is written in a computer program by which an instruction is used to transfer the data.Transferring data will be from CPU register to memory.in this scenario the I/O doesn't have direct access to memory unit.For each operation there will be instruction to transfer data. Mean time CPU waits for the signal from I/O unit.This process is time consuming.

2.Interrupt Initiated I/O: CPU ideal time can be avoided with interrupt initiated I/O because interrupt I/O uses interrupt driven method to transfer the data.whenever the data is ready to transfer I/O will initiate the interrupt to CPU so that CPU can interrupt current process and transfer the I/O data . It reduces the time consuming.

Note:Both the above methods of transferring data is limited by speed of the processer.

3.Direct Memory Access:In this operation we allow the peripherals to directly communicate with memory buses.CPU interventions will be reduced.DMA directly transfers the data between I/O devices and memory unit with the help of DMA.DMA controller is a device that is programmed to perform a sequence of data transfer on behalf of CPU.

step 1:DMA request I/O device

Step 2:DMA acknowledge with DMA controller

Step 3: Memory read with DMA controller

Step 4: Memory address with DMA controller

step 5:Data transfer withI/O device


Related Solutions

1. How does a system recover from errors? 2. Explain DMA operations.
1. How does a system recover from errors? 2. Explain DMA operations.
In bargaining scenarios without player impatience, explain how the number of bargaining rounds and who makes...
In bargaining scenarios without player impatience, explain how the number of bargaining rounds and who makes the first offer affect the final outcome. How is bargaining impatience measured?
Please, explain your answer clearly (step-by-step), so I can trace the output without using the Visual...
Please, explain your answer clearly (step-by-step), so I can trace the output without using the Visual Studio Program. Please, clearly describe how the mechanism of the loop works. The answers in bold. What is printed by the following code snippet? for (int i = 0; i < 5; i++) {    for (int j = 0; j <= i; j++)    {       cout << i << " ";    } } 0 1 2 3 4 5 0 0...
Question 1: Explain what I/O operation service provides. Describe why user application programs cannot provide these...
Question 1: Explain what I/O operation service provides. Describe why user application programs cannot provide these services. Question 2 : Discuss the advantage and disadvantages of a layered approach.
When you read data in (without using getLine) how is the data read. does it read...
When you read data in (without using getLine) how is the data read. does it read spaces and line breakers(\n). Also how can you read a paragraph into a double vector of strings ( into words and strings again without using getLine)
I need derivation of fermi's golden rule please write clearly so I can read it
I need derivation of fermi's golden rule please write clearly so I can read it
What is the criterion problem is in I/O psychology? How criteria are defined in I/O psychology?...
What is the criterion problem is in I/O psychology? How criteria are defined in I/O psychology? What are the criteria for criteria? What is the difference between the conceptual criterion and the actual criterion.? How to differentiate between criterion contamination and criterion deficiency? What are the differences between objective and subjective criteria?
o Explain in your own words and without the use of jargon (a) the three ways...
o Explain in your own words and without the use of jargon (a) the three ways of obtaining values of physical properties; o (b) why some fluids are referred to as incompressible; o (c) the “liquid volume additivity assumption” and the species for which it is most likely to be valid; o (d) the term “equation of state”; o (e) what it means to assume ideal gas behavior; o (f) what it means to say that the specific volume of...
2. (a) (i) Explain clearly various processes which explain electric breakdown in vacuum. (ii) Discuss about...
2. (a) (i) Explain clearly various processes which explain electric breakdown in vacuum. (ii) Discuss about the properties of composite dielectrics. Or (b) (i) Explain briefly various theories of breakdown in liquid dielectrics. (ii) Explain the Townsends criterion for a spark.
please, the answer must be in computer form because I cannot read handwriting clearly. and if...
please, the answer must be in computer form because I cannot read handwriting clearly. and if you can provide the link of the answer I will be so grateful to you What is the Ecological fallacy and provide one example?
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT