COA 2nd Assignment 4 and 5
COA 2nd Assignment 4 and 5
Direct memory access (DMA): A DMA module controls the exchange of data
between main memory and an I/O module. The processor sends a request for the
transfer of a block of data to the DMA module and is interrupted only after the entire
block has been transferred.
Answer
1. RAID is a set of physical disk drives viewed by the operating system as a single
logical drive.
3. Redundant disk capacity is used to store parity information, which guarantees data
recoverability in case of a disk failure.
Q3) Briefly define the seven RAID levels
Answer
A RAID 1
its creates an exact copy of a set of data on two or more
disks. this is useful when read performance or reliability are more
important than data storage capacity.
A RAID 2
Its stirpes data at the bit level and uses a hamming code
for error correction.
A RAID 3
Its uses byte level striping with a dedicated parity disk.
it’s a very rare practice.
A RAID 4
its uses block level striping with a dedicated parity disk.
this allows each member of the set to act independently when only a
single block is requested.
A RAID 5
its uses block level striping with parity data distributed
across all member disks.it achieved popularity due to its low cost
of redundancy.
A RAID 6
its extends RAID 5 by adding an additional parity
block.
A RAID 7
This isn't an open industry satndard.it is based on the
concepts used in RAID 3 and RAID 4 but greatly enhanced to address
some of the limitations of those levels. This increased performance
Answer
The desired advantages of using glass substrate in the magnetic disk are as given
below:
This function is used for synchronizing the traffic flow between an external device and
an internal resource. In order to understand how this function works, consider the
following example wherein the transfer of data between an external device and a
processor is controlled.
Processor Communication
The commands are retrieved by I/O module from the processor and then transmitted
onto the control bus as signals.
Example
Following are the commands which an I/O module of the disk drive can receive
1. Write sector
2. READ sector
3. SCAN record ID
4. SEEK track number
Device Communication
This function contains data, commands and status information. An I/O module should
be capable enough of performing this function.
Data Buffering
This function is one of the most prominent task of an I/O module. The rate at which the
data is transferred in or out of the processor is very high. However, in case of peripheral
devices, although the orders of magnitude is less, it still contains a wide range. The data
which is retrieved from the processor is transmitted to an I/O, module in an
instantaneous break. Buffering of this data is done and it is transmitted at its data rate
to a peripheral device.
Error Detection
This function of an I/O module is used for both detecting and reporting errors to a
processor. Generally, there are two classes of errors. The first class comprises of
electrical and mechanical malfunctions, which are identified by the device
Example
An IRA character code covers almost 7 bits of a byte, leaving 8 th bit vacant. This eighth
bit must be set in such a way that the total number of 1’s in the byte
Q7) What are the advantages and disadvantages of using a variable-
length instruction format?
Answer
Advantages
Disadvantages