By the end of this chapter, you will be able to:
Mastering these skills will help you manage computer systems confidently and keep data secure in any workplace.
Input-output (I/O) management is the part of the operating system that controls every transfer of data between the processor, main memory and peripheral devices such as keyboards, disks, printers, network cards and scanners. Peripheral devices are slower than the CPU, come from many manufacturers and behave differently, so the operating system hides these differences behind a uniform interface and decides when and how each transfer takes place.
Example: at a SACCO banking hall in Murang'a, the teller's PC reads a member card, prints a receipt and writes the transaction to disk; the I/O manager coordinates all three devices so that the teller sees one smooth operation.
I/O management is the set of operating system functions, data structures and driver software that receives requests for input or output from processes, schedules them, passes them to the correct device, monitors their progress and reports the result back to the requesting process. It sits between user programs and the hardware controllers.
The I/O subsystem is designed to meet a set of goals that keep the whole computer efficient and reliable.
I/O hardware consists of the physical parts that move data between the computer and the outside world. Knowing these parts helps a technician diagnose faults and choose drivers.
| Name | Specification | Use |
|---|---|---|
| Port | Connection point such as USB, HDMI, RJ45, serial | Attaches a device to the computer |
| Bus | Shared communication path such as PCI Express, SATA, USB | Carries data, address and control signals between components |
| Device controller | Chip with status, command and data registers | Operates the device on behalf of the CPU |
| Interrupt controller | APIC on modern PCs | Signals the CPU when a device needs attention |
| DMA controller | Direct Memory Access engine | Moves blocks of data between device and memory without the CPU copying each byte |
I/O software is organised in layers. Each layer uses the services of the one below it and offers a simpler service to the one above it.
When a user saves a document, the request passes down these layers: the word processor calls write(), the file system finds the disk blocks, the disk driver programs the controller, the controller performs the transfer and raises an interrupt, and the interrupt handler tells the driver that the work is done.
The CPU needs a way to know when a device has finished an operation or has data ready. The two basic methods are polling and interrupts.
In polling (also called programmed I/O or busy waiting), the CPU repeatedly reads the device's status register in a loop until the busy bit clears, then moves the next byte. Polling is simple and has very low delay for fast devices, but it wastes processor time when the device is slow, because the CPU does nothing useful while waiting.
In interrupt-driven I/O, the CPU starts the operation and then switches to another process. When the device finishes, its controller sends an interrupt signal; the CPU suspends the current work, runs the interrupt service routine for that device and then resumes. This frees the CPU for useful work but each interrupt costs time for saving and restoring state.
| Feature | Polling | Interrupt-driven I/O |
|---|---|---|
| Who checks the device | CPU checks status repeatedly | Device notifies the CPU |
| CPU use while waiting | Wasted in a busy loop | Free for other processes |
| Overhead per event | Very small | Context save and restore |
| Best suited to | Very fast devices, simple embedded systems | Slow or unpredictable devices such as keyboards and printers |
| Response to rare events | Poor, events may be missed between checks | Immediate |
Modern systems combine both: a network card under heavy load switches from interrupts to polling (as in the Linux NAPI method) to avoid an interrupt storm, then returns to interrupts when traffic drops.
Create a free account to open more of this chapter.
Free: practical guides, quick cards, workplace scenarios and more.
Create a free accountType: Individual
| Tools & Equipment | Materials |
|---|---|
| Computer with Windows 10 OS installed | Local hard drive with at least 100GB free space |
| Keyboard and mouse |
| S/N | Item | Quantity |
|---|---|---|
| 1 | Computer with Windows 10 OS installed | 1 Pc per Candidate |
| 2 | Keyboard and mouse | 1 set per Candidate |
| 3 | Local hard drive with at least 100GB free space | 1 Pc per Candidate |
| Items to be Evaluated | Marks Available | Marks Obtained | Comments |
|---|---|---|---|
| TASK 1: Folder Creation and Organization | |||
| Observed laboratory rules and workstation setup (Award 2 marks for adherence to lab rules and correct setup, zero if not) | 2 | ||
| Accessed local C drive correctly (Award 2 marks for navigating correctly to the local C drive) | 2 | ||
| Created main folder named 'CompanyDocs' on C drive (Award 3 marks for correct folder name and location) | 3 | ||
| Created three subfolders named 'Finance_Reports', 'HR_Records', and 'Project_Files' inside 'CompanyDocs' (Award 2 marks each for correct subfolder names and placement) | 6 | ||
| Created two subfolders inside each of the three main subfolders with logical names (Award 1 mark per correctly named and placed subfolder, total 6 marks) | 6 | ||
| Verified folder hierarchy structure matches the specified organization (Award 3 marks for complete and accurate folder hierarchy) | 3 | ||
| Sub-Total | 22 | ||
| PRODUCT CHECKLIST | |||
| Folder 'CompanyDocs' exists on local C drive (Award 2 marks if folder exists at correct location) | 2 | ||
| Three main subfolders named exactly 'Finance_Reports', 'HR_Records', 'Project_Files' inside 'CompanyDocs' (Award 1 mark per correctly named and placed folder) | 3 | ||
| Each main subfolder contains exactly two subfolders with logical and consistent naming (Award up to 4 marks for correctly named and placed subfolders) | 4 | ||
| Folder names are free of spelling errors and use underscore as specified (Award 2 marks for correct spelling and naming conventions) | 2 | ||
| Folder hierarchy structure corresponds exactly to task instruction (Award 3 marks for complete, logical folder structure) | 3 | ||
| Sub-Total | 14 | ||
| GRAND TOTAL | 36 | ||
Type: Individual
| Tools & Equipment | Materials |
|---|---|
| Desktop Computer with Windows 10 OS | Set of 10 sample text files (.txt) |
| USB flash drive 16GB |
| S/N | Item | Quantity |
|---|---|---|
| 1 | Desktop Computer with Windows 10 OS | 1 Pc per Candidate |
| 2 | Set of 10 sample text files (.txt) | 1 Set per Candidate |
| 3 | USB flash drive 16GB | 1 Pc per Candidate |
| Items to be Evaluated | Marks Available | Marks Obtained | Comments |
|---|---|---|---|
| TASK 1: Preparation and Safety | |||
| Observed laboratory rules including workstation cleanliness and no food/drink near computer (Award 2 marks for full compliance or zero) | 2 | ||
| Sub-Total | 2 | ||
| TASK 2: File Management and Renaming | |||
| Accessed the folder containing the 10 sample text files (Award 1 mark for correct folder access or zero) | 1 | ||
| Selected files correctly for renaming (Award 1 mark for selecting all 10 files or zero) | 1 | ||
| Applied standard naming convention prefix 'ProjA_' to all files (Award 2 marks for correct prefix applied to all files or zero) | 2 | ||
| Renamed files with sequential numbering from 01 to 10 in two-digit format (Award 3 marks for correct numbering sequence or zero) | 3 | ||
| Ensured file extensions (.txt) were preserved during renaming (Award 2 marks for preserving file extensions or zero) | 2 | ||
| Verified all renamed files opened correctly without errors (Award 2 marks for successful file access post-renaming or zero) | 2 | ||
| Sub-Total | 11 | ||
| TASK 3: Documentation and Backup | |||
| Copied renamed files to USB flash drive as backup (Award 2 marks for successful backup or zero) | 2 | ||
| Saved screenshot of renamed files list as 'fileren' (Award 3 marks for correct screenshot saved or zero) | 3 | ||
| Sub-Total | 5 | ||
| PRODUCT CHECKLIST | |||
| All 10 files renamed with prefix 'ProjA_' and sequential numbering 01 to 10, extensions intact (Award 10 marks for full correct renaming or zero) | 10 | ||
| Sub-Total | 10 | ||
| GRAND TOTAL | 28 | ||
At the start of this chapter we promised you would be able to:
Tick each one you can genuinely do.
So, are you there yet?
You're competent when you can confidently do 50% or more of what this chapter promised.
Sign in to record how you're doing.