Operating System Chapter 5 - MA
Operating System Chapter 5 - MA
A COLLEGE
ASSOSA CAMPUS
• Introduction
• Buffering strategies
• It is a broad term that includes various administrative tools and processes for the
maintenance and upkeep of a computing, network, mobile and/or virtual device.
• Buffer is a memory space which stores the input data and pass it on to
the system according to this speed in this way there is no need to hold
the input device until it is processed. The buffer can be of any type,
hardware or software, but in general software buffer are used widely.
• In this, the data do not directly pass from the producer to the consumer
because the data would change due to overwriting of buffers before
they had been consumed.
Direct memory access(DMA)
• DMA:-Many devices can temporarily take control of the bus and
perform data transfers to (and from) main memory or other devices.
Because the device is doing the work without the help of the CPU, this
type of data transfer is known as direct memory access.
• DMA transfers can be performed between two devices, between a
device and memory, or between memory and memory.
• Direct memory access is a method that allows an input/output (I/O)
device to send or receive data directly to or from the main memory,
bypassing the CPU to speed up memory operations.
• The process is managed by a chip known as a DMA controller
(DMAC).
• A defined portion of memory is used to send data directly from a
peripheral to the motherboard without involving the microprocessor,
so that the process does not interfere with overall computer operation.
Continued
• In older computers, four DMA channels were numbered 0, 1, 2 and 3.
When the 16-bit industry standard architecture (ISA) expansion bus
was introduced, channels 5, 6 and 7 were added.
• ISA was a computer bus standard for IBM-compatible computers,
allowing a device to initiate transactions (bus mastering) at a quicker
speed.
• The ISA DMA controller has 8 DMA channels, each one of which
associated with a 16-bit address and count registers.
• ISA has since been replaced by accelerated graphics port (AGP) and
peripheral component interconnect (PCI) expansion cards, which are
much faster. Each DMA transfers approximately 2 MB of data per
second.
• A computer’s system resource tools are used for communication
between hardware and software.
The four types of system resources
• I/O addresses
• Memory addresses
In burst mode, the system bus is released only after the data transfer is
completed. In cycle stealing mode, during the transfer of data between
the DMA channel and I/O device, the system bus is relinquished for a
few clock cycles so that the CPU can perform other tasks.
Continued
• When the data transfer is complete, the CPU receives an interrupt request
from the DMA controller.
• In transparent mode, the DMAC can take charge of the system bus only
when it is not required by the processor.