Transcription and Subtitles
- 62Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
- spaceFlip card
- KI knew it
- DI didn't know it
- ←Previous card
- →Next card
Why must an operating system support many different types of I/O devices?
Because devices differ in connection method, speed, direction of data flow, access pattern, and interaction requirements.
Or swipe the card
62 cards
Why must an operating system support many different types of I/O devices?
Because devices differ in connection method, speed, direction of data flow, access pattern, and interaction requirements.
What are the three broad hardware components needed to manage I/O devices?
Hardware for connecting devices, transferring data, and controlling device operation.
What is an I/O port?
A connection point through which an I/O device communicates with a computer.
What is a bus in an I/O system?
A shared communication pathway used to transfer data between the CPU, memory, and devices.
How can many different devices use the same connector type?
The connector connects devices to a shared bus, while device-specific controllers and drivers handle the differences between devices.
What is a device controller?
Hardware that manages communication with and operation of a particular type of I/O device.
Why do different I/O devices require different controllers?
Because devices have different operating characteristics, data formats, speeds, and control requirements.
What is the purpose of registers in an I/O controller?
Registers hold transferred data and provide information or controls such as device status and usage.
Why must an I/O device's usage status be tracked?
To prevent conflicting processes from using the same device simultaneously.
What is a device driver?
System software that allows the operating system to communicate with and control a specific device.
Why are device drivers needed even when devices use the same connector?
The same connector can support devices with very different hardware and behavior.
What is memory-mapped I/O?
An I/O method in which device registers or locations are assigned memory addresses and accessed using ordinary memory instructions.
How could memory-mapped I/O be used to change a pixel's color?
The system writes data representing the desired color to the memory address associated with that pixel.
How does direct I/O differ from memory-mapped I/O?
Direct I/O uses special I/O instructions to communicate with devices, whereas memory-mapped I/O uses ordinary memory instructions and assigned memory addresses.
What are well-known I/O addresses?
Predefined addresses associated with particular devices or system functions.
What is the relationship between a device driver and a device controller?
The driver is the operating-system software that communicates with the controller, while the controller is the hardware that operates the device.
What happens if a device driver is missing or malfunctioning?
The operating system may be unable to communicate with or use the associated device.
What is polling in an I/O system?
A method in which the CPU repeatedly checks each device to determine whether it needs service.
What is a major disadvantage of polling?
It can be inefficient and may delay or miss service for devices, especially when there are many devices or some take a long time to respond.
What is an interrupt in an I/O system?
A signal from a device requesting CPU attention or service.
How does a device initiate an interrupt?
It raises the interrupt request line, causing the CPU to suspend its current activity and service the request.
What does an interrupt handler do for a keyboard input?
It obtains the character from the keyboard and places it in a buffer as quickly as possible.
Why should interrupt handlers be small and fast?
To minimize the time the CPU is diverted from the process it was running.
Can an interrupt handler itself be interrupted?
Sometimes. Some interrupts are interruptible, while others are not.
What is a maskable interrupt?
An interrupt that the CPU can temporarily ignore or disable.
What is a non-maskable interrupt?
An interrupt that the CPU cannot ignore and must service.
Why are interrupt priorities needed?
To determine which interrupt should be handled first when multiple devices request service.
What is direct memory access (DMA)?
A method that allows a device controller to transfer a block of data directly to or from memory without CPU supervision of every word.
Why is DMA especially useful for disk transfers?
Disks often transfer large blocks of data, so managing every individual word would waste CPU time.
How does a CPU typically initiate a DMA transfer?
It specifies the amount of data, the source, and the destination, then allows the DMA controller to perform the transfer.
What is a disadvantage of DMA?
It requires additional hardware and therefore adds cost and complexity.
What is a character device?
A device that transfers data one character or small unit at a time.
What is a block device?
A device that transfers data in blocks of multiple bytes.
What is the difference between sequential and random access?
Sequential access requires data to be accessed in order; random access allows the system to access locations directly and in any order.
What is synchronous I/O?
I/O in which the requesting process waits for the operation to complete before continuing.
What is asynchronous I/O?
I/O in which the process starts an operation and continues doing other work until it is notified that the operation has completed.
What is a shared I/O device?
A device that can be used by multiple processes, with access coordinated by the operating system.
What is a dedicated I/O device?
A device that must be assigned to one process at a time.
How can an I/O device be classified by data direction?
It may be input-only, output-only, or capable of both reading and writing.
What is blocking I/O?
I/O in which the process stops and waits until the requested operation finishes.
What is non-blocking I/O?
I/O in which the process performs or requests part of an operation and continues rather than waiting for the entire operation to finish.
How do blocking and non-blocking I/O compare?
Blocking I/O is simpler but slower and less efficient; non-blocking I/O uses resources more effectively but is more complex.
What is buffering?
The use of memory between a device and the system to temporarily hold data during transfer.
Why is buffering necessary when devices have different speeds?
It prevents the faster system from having to wait continuously for a slower device.
What is copy semantics in the context of I/O buffering?
The issue of determining which copy of data is authoritative when the data exists in multiple locations.
What is a device-status table?
An operating-system record of connected devices, their status, and pending requests or users.
Why might I/O requests need to be scheduled?
To coordinate access, prevent conflicts, and ensure that processes receive fair access to shared devices.
What is quality of service in an I/O subsystem?
A guarantee that processes receive a defined or fair amount of access to an I/O resource.
What is caching in an I/O system?
Keeping frequently or recently accessed device data in faster memory so it can be reused without accessing the slower device.
What is spooling?
Temporarily storing output in files or a queue so a slow device can process it later.
Why is spooling useful for printers?
It prevents processes from waiting for the printer's slow physical operation.
What is deadlock in device allocation?
A state in which processes wait indefinitely for devices or data held by one another.
Why can reserving devices for individual processes cause deadlock?
Processes may hold one resource while waiting for another resource held by a different process, creating a cycle of indefinite waiting.
How should an I/O subsystem handle device errors?
It should detect errors, determine whether to retry, mark unusable locations when appropriate, and report persistent problems.
Why must I/O access be protected by the operating system?
To prevent processes from bypassing system controls and interfering with devices or other processes.
What is the kernel's role in I/O management?
The kernel tracks devices, drivers, controllers, connections, users, speeds, buffers, and pending operations while controlling access.
How do network devices fit into an operating system's I/O model?
They use controllers, drivers, and software interfaces such as sockets to provide communication over a network.
What are sockets used for?
Sockets provide a software interface for communication over a network.
What happens when an application requests a file from an I/O device?
The system translates the file name to a device, requests the data through the I/O subsystem and driver, transfers it into a buffer, and makes it available to the application.
What is the typical layered path of a file-read request?
Application → I/O subsystem → device driver → interrupt handler and controller → device; the data then returns through the layers to the application.
Why are I/O operations slower than many internal CPU operations?
They require communication across buses and multiple software and hardware layers, and physical devices are often much slower than the CPU.
Why can cloud or network storage be slower than local storage?
The request must cross a network in addition to passing through the normal local I/O layers.

Ask anything
We've read this whole study set, so questions about it get the best answers.