1/74
Comprehensive vocabulary flashcards covering files and file systems, input/output (I/O), and deadlocks based on Tanenbaum's Modern Operating Systems study guide.
File
A collection of related information stored on secondary storage and treated as a single unit by the operating system.
File Abstraction
The operating system model that hides hardware details and presents files to users as a named sequence of bytes.
File Name
A symbolic identifier used by humans to identify a file.
File Extension
A suffix added to a file name that often indicates the file type (e.g., .txt for text, .c for C source code, .exe for executable).
File Attributes
Metadata stored separately from actual file contents, including attributes such as name, owner, size, permissions, timestamps, and disk block location.
File Descriptor
A handle returned by the open system call used to manipulate and reference an open file.
Create (File Operation)
A system call that creates an empty file on secondary storage.
Open (File Operation)
A system call that retrieves file information and returns a file descriptor for subsequent operations.
Read (File Operation)
A system call that moves data from disk into memory.
Write (File Operation)
A system call that copies data from memory to a file on disk.
Append (File Operation)
A file operation that adds data specifically to the end of a file.
Seek (File Operation)
A system call that moves the file pointer to allow random access within a file.
Close (File Operation)
A system call that releases the operating system resources associated with an open file.
Byte Stream Files
A file organization method where the operating system sees data strictly as an unformatted sequence of bytes, commonly used by UNIX systems.
Record-Oriented Files
A file organization method where data is organized into structured records, typically found in database systems.
Directory
A special file containing mappings from filenames to file metadata.
Single-Level Directory
A directory system where all files are stored in a single root directory, which leads to file name conflicts and poor scalability.
Two-Level Directory
A directory structure with separate directories for each user, allowing different users to use identical file names.
Tree-Structured Directory
A hierarchical directory structure used in modern systems that provides organized branching and easier navigation.
Acyclic Graph Directory
A directory structure that supports file sharing by allowing multiple directories or users to reference the same files.
File Control Block (FCB)
A structure maintained by the file system for every file that stores metadata including owner, permissions, size, timestamps, and disk addresses.
Inode
The UNIX equivalent of a File Control Block (FCB) that stores file metadata and disk block pointers, but does not contain the filename.
Inode Structure
The internal contents of an inode, which include owner ID, group ID, access mode, file size, and block pointers.
Contiguous Allocation
A file allocation method where file blocks are stored in consecutive disk sectors, providing excellent sequential performance but suffering from external fragmentation.
External Fragmentation
A disadvantage of contiguous allocation where free disk space is divided into scattered pieces, making file growth and new allocations difficult.
Linked Allocation
A file allocation method where each block contains a pointer to the next block, eliminating external fragmentation but causing poor random access and pointer overhead.
Pointer Overhead
The extra storage space consumed by storing disk address pointers within each data block in linked allocation.
Indexed Allocation
A file allocation method where a dedicated index block stores all pointers to a file's data blocks, providing direct access without external fragmentation.
Index Block
A separate disk block in indexed allocation that stores pointers to all data blocks belonging to a file.
Bitmap (Free Space Management)
A free-space tracking method using an array of bits where a value of 1 indicates a used block and 0 indicates a free block.
Linked List of Free Blocks
A free-space management method where unused disk blocks are chained together via pointers, requiring less memory overhead but resulting in slower searches.
Consistency Checking
A verification process by the operating system that checks block ownership, directory correctness, and allocation consistency to repair damage.
fsck
A UNIX utility used for file system consistency checking and repair.
chkdsk
A Windows utility used for file system consistency checking and repair.
I/O Devices
Hardware components that enable communication between a computer system and its external environment.
Device Controller
An electronic intermediary between the CPU and a physical device that handles low-level hardware operations.
Block Devices
I/O devices (such as hard disks and SSDs) that store information in fixed-size blocks and allow independent access to each block.
Character Devices
I/O devices (such as keyboards, printers, and serial ports) that deliver or accept a continuous stream of characters without fixed block formatting.
Programmed I/O
An I/O method where the CPU directly controls transfers and repeatedly checks the device status, wasting CPU cycles in busy-waiting.
Polling
The repetitive testing of a device's status register by the CPU (such as while(status != READY)) to wait until the device is ready.
Interrupt-Driven I/O
An I/O method where the CPU initiates an operation and performs other work until the device notifies completion via a hardware interrupt.
Interrupt Handler
A specialized operating system routine that saves CPU state, determines the interrupt source, services the device, and restores execution.
Direct Memory Access (DMA)
A high-performance I/O technique where a controller transfers data directly between a device and memory without requiring the CPU to copy every byte.
Device Driver
Device-specific software responsible for hardware initialization, command translation, error handling, and data transfer for a controller.
Device-Independent I/O Software
An operating system software layer that provides uniform I/O functions including naming (e.g., /dev/sda), protection, buffering, and device allocation.
Buffering
The use of a temporary memory area during data transfers to absorb speed differences between producer and consumer devices.
Single Buffer
A buffering scheme where data is transferred between a device and a process through a single shared memory area.
Double Buffering
A buffering scheme that uses two buffers so a device can transfer data into one buffer while a process reads from the other, enabling overlap.
Caching
A performance technique that stores recently used data in fast memory to reduce access latency for future requests.
FCFS Disk Scheduling
First-Come, First-Served disk scheduling algorithm that services requests in the exact order of their arrival, which is fair but inefficient.
SSTF Disk Scheduling
Shortest Seek Time First disk scheduling algorithm that selects the request closest to the current head position, reducing seek movement but risking starvation.
SCAN Disk Scheduling
An elevator-based disk scheduling algorithm where the disk arm moves in one direction servicing requests until it reaches the edge, then reverses.
LOOK Disk Scheduling
A variation of SCAN disk scheduling that moves the head only as far as the final request in each direction before reversing, avoiding unnecessary travel to the disk edge.
C-SCAN Disk Scheduling
Circular SCAN disk scheduling algorithm that services requests in only one direction and returns immediately to the beginning, providing uniform waiting times.
Seek Time
The time required for the disk arm to move to the desired track.
Rotational Latency
The time spent waiting for the target sector to rotate under the read/write head.
Turnaround Time
The total elapsed time from the submission of a process to its complete execution.
Interrupt
A signal causing the CPU to temporarily suspend execution of the current program and service an event.
Deadlock
A situation where a set of processes is permanently blocked because each process is waiting for an event that only another process in the set can cause.
Resource Allocation Graph
A directed graph used to model deadlocks, with circles representing processes, squares representing resources, and directed edges indicating requests or assignments.
Request Edge
A directed edge (P→R) in a resource allocation graph indicating that process P is requesting resource R.
Assignment Edge
A directed edge (R→P) in a resource allocation graph indicating that resource R has been allocated to process P.
Coffman Conditions
The set of 4 conditions (Mutual Exclusion, Hold and Wait, No Preemption, Circular Wait) that are all necessary for a deadlock to occur.
Mutual Exclusion (Coffman Condition)
A necessary deadlock condition stating that only one process can use a given non-shareable resource at a time.
Hold and Wait (Coffman Condition)
A necessary deadlock condition where a process currently holding resources is waiting to acquire additional resources held by other processes.
No Preemption (Coffman Condition)
A necessary deadlock condition stating that resources cannot be forcibly removed from a process and must be released voluntarily.
Circular Wait (Coffman Condition)
A necessary deadlock condition where processes form a closed cycle such that each process is waiting for a resource held by the next process.
Deadlock Prevention
A deadlock management strategy that breaks at least one of the 4 Coffman conditions so that deadlocks are structurally impossible.
Deadlock Avoidance
A dynamic strategy that regulates resource allocation by ensuring the operating system never enters an unsafe state.
Safe State
A system state in which there exists at least one order of process execution that allows all processes to finish without deadlocking.
Unsafe State
A state with no guaranteed completion sequence; it is not yet deadlocked, but may lead to a deadlock.
Banker's Algorithm
A deadlock avoidance algorithm that evaluates whether resource allocations leave the system in a safe state, named after a banker ensuring loans can always be repaid.
Need Formula (Banker's Algorithm)
The formula used to calculate a process's remaining resource requirements: Need=Max−Allocation.
Deadlock Detection
A strategy where deadlocks are permitted to occur and the operating system periodically inspects resource graphs or matrices to discover deadlock cycles.
Resource Preemption (Deadlock Recovery)
A deadlock recovery method where allocated resources are forcibly taken away from a process, requiring checkpointing, rollback, and restart.