Second Half Flashcards
What is the primary function of the I/O subsystem in an OS?
To manage communication between the computer and external devices.
What are the types of I/O devices?
Input devices (e.g., keyboard, mouse), output devices (e.g., monitor, printer), and storage devices (e.g., hard drives).
What is the purpose of device drivers in I/O management?
To act as an interface between the operating system and hardware devices.
What is direct memory access (DMA)?
A feature allowing devices to transfer data directly to/from memory without CPU intervention.
How does the OS manage multiple I/O requests?
By using I/O scheduling algorithms to optimize device usage.
What is buffering in I/O systems?
Temporarily storing data in memory during I/O operations to improve performance.
What is spooling in I/O?
A technique for managing output devices by storing jobs in a queue until the device is ready.
What is the role of an I/O scheduler?
To decide the order in which I/O requests are processed to optimize system performance.
What is the difference between synchronous and asynchronous I/O?
Synchronous I/O waits for operations to complete, while asynchronous I/O allows processes to continue executing.
How does the OS ensure fairness in I/O management?
By using priority-based or round-robin scheduling for I/O requests.
What is a file in the context of an operating system?
A collection of related data stored on secondary storage, identified by a name.
What are the main operations supported by a file system?
Creation, deletion, reading, writing, and updating files.
What is a directory in a file system?
A structure that organizes and manages files within a storage device.
What are file attributes?
Metadata about a file, such as name, type, size, creation date, and permissions.
What is file allocation?
The method by which disk space is assigned to files (e.g., contiguous, linked, or indexed).
How does the OS ensure file security?
By implementing access control lists (ACLs) and file permissions.
What is a file descriptor?
A reference to an open file used by the OS to manage file operations.
What is the purpose of a file system hierarchy?
To organize files and directories in a structured manner for easy navigation.
What is journaling in file systems?
A technique to keep track of changes in a log to prevent data loss during system crashes.
What are examples of file systems?
FAT32, NTFS, ext4, HFS+, and APFS.
What is disk scheduling in operating systems?
A technique to optimize the order of disk I/O requests to improve performance.
What is the First-Come, First-Served (FCFS) disk scheduling algorithm?
A simple method where requests are processed in the order they arrive.
What is the Shortest Seek Time First (SSTF) algorithm?
A scheduling method that selects the request closest to the current disk head position.
What is the SCAN (Elevator) disk scheduling algorithm?
It moves the disk head back and forth across the disk to service requests.
What is the C-SCAN algorithm?
A variant of SCAN that services requests in one direction and quickly returns to the start.
What is disk fragmentation?
A condition where files are scattered across non-contiguous areas of the disk.
What is defragmentation?
The process of reorganizing disk contents to store files in contiguous blocks.
What is RAID in disk management?
A technology for combining multiple disks to improve performance and redundancy.
What are the types of RAID configurations?
RAID 0 (striping), RAID 1 (mirroring), RAID 5 (striping with parity), and more.
What is the role of a disk cache?
To temporarily store frequently accessed data to improve read and write speeds.
What is the goal of CPU scheduling algorithms?
To optimize CPU utilization, response time, throughput, and fairness.
What is the Round Robin (RR) scheduling algorithm?
A pre-emptive algorithm that allocates CPU time in fixed time slices or quantums.