Device Management Issues
1. Explain the layered model applied in device management.
Device management is structured through layers in a model similar to that presented for the
system
operational as a whole. The lower-level layers hide characteristics of the devices of the layers
superior, providing a simple and reliable interface to the user and their applications. The layers are divided into
two groups, where the first group views the various types of system devices in a unique way,
while the
second is specific to each device. Most layers operate independently of the
device.
2. What is the main purpose of I/O routines?
Make I/O operations as simple as possible for the user and their applications. This allows the user to
perform I/O operations without worrying about the details of the device being accessed.
3. What are the different ways for a program to call I/O routines?
By read/write commands and calls to library routines offered by high-level languages or
directly through a system call in high-level code.
4. What are the main functions of the I/O subsystem?
Create a standardized interface with the device drivers and provide a uniform interface with the layers.
superior.
5. What is the main function of a device driver?
Implement the communication of the I/O subsystem with the devices, through controllers.
6. Why should the I/O system create a standardized interface with the device drivers?
In order for it to be possible to include new drivers without the need to alter the I/O subsystem layer.
7. Explain how the DMA technique works and its main advantage.
In simplified form, a disk read operation using DMA would have the following steps. The CPU, through
do
device driver initializes the DMA controller registers and, from this point on, is free to perform other tasks
activities. The DMA controller, in turn, requests the disk controller to transfer the block from the disk
for the
your internal buffer. Once the transfer is finished, the disk controller checks for errors and, if there are none
errors, the DMA controller transfers the block to the I/O buffer in main memory. At the end of the
transfer
the DMA controller generates an interrupt informing the processor that the data is already in memory
principal.
The main advantage of this technique is to prevent the processor from being busy with the transfer of the block to the
memory.
8. Differentiate structured I/O devices from unstructured ones.
Structured devices (block devices) are characterized by storing information in fixed-size blocks.
each having an address that can be read or written independently of the others. Disks
magnetic and optical are examples of structured devices. Unstructured devices are those that
send or receive a sequence of characters without being structured in the format of a block. Thus, the
character sequences are not addressable, preventing direct access operations to the data. Devices such as
Terminals, printers, and network interfaces are examples of unstructured devices.
9. What is the main reason that I/O operations on tapes and magnetic disks are so slow if
compared to the speed at which the processor executes instructions?
The main reason is the mechanical aspect present in tape and magnetic disk architectures, due to this, the time
the total of I/O operations is extremely long, compared to the number of instructions that the processor can
execute in the same time interval.
10. What are redundancy techniques in magnetic disks?
They are techniques that ensure data integrity even in the event of a crash on magnetic disks.
11. Diferencie as técnicas RAID 0, RAID 1 e RAID 5 apresentando vantagens e desvantagens.