Operating Systems - Chapter 8

0.0(0)
Studied by 0 people
call kaiCall Kai
Locked
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/35

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 5:45 PM on 7/27/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

36 Terms

1
New cards

File system (FS)

The part of the OS that implements the concept of files.

2
New cards

File

A named collection of information managed on secondary storage by the FS; may be an unstructured byte stream or a series of records.

3
New cards

Record

A structure of related data items, identified within a file by a record number or unique key field.

4
New cards

Access method

A set of operations for accessing files; common types are sequential (next n bytes/next record) and direct (access by record number or key).

5
New cards

File directory (folder)

A special-purpose file that records information about other files and possibly other directories.

6
New cards

Tree-structured directory hierarchy

A directory structure where every file/directory (except the root) has exactly one parent.

7
New cards

Root

The highest-level directory in a tree hierarchy; has no parent.

8
New cards

Absolute path name

The full path from the root to a file, concatenating directory/file names.

9
New cards

Current working directory

A user-designated directory used as the starting point for relative paths.

10
New cards

Relative path name

A path starting from the current working directory.

11
New cards

Directed acyclic directory hierarchy

A structure allowing a file/directory to have more than one parent (no cycles).

12
New cards

Link

An operation/entry creating an additional path to a file or directory ("link path1 path2").

13
New cards

Reference count

A non-negative integer tracking how many directories point to a file; the file is deleted only when the count reaches 0 after decrementing (i.e., last link removed).

14
New cards

Symbolic link (shortcut)

A directory entry pointing to a file/directory, but whose deletion removes only the link, not the file itself; allows sharing without cycles or multiple "true" parents.

15
New cards

Garbage collection

An algorithm needed to reclaim unreachable files/directories that can result from cycles in a general graph structure.

16
New cards

File attributes

Metadata such as size, type, location, protection, and use (creation/access/modification times).

17
New cards

File control block (FCB)

A data structure (stored apart from the directory) containing all attributes of a file; called an i-node in Unix.

18
New cards

Fixed-length entries

Simple, fast, but limits file name length.

19
New cards

Variable-length entries (with length field)

Allows variable names but requires coalescing holes on deletion.

20
New cards

Variable-length entries with two pointers (K, L)

Entry length (K) and name-end (L) pointers; makes renaming easier.

21
New cards

Create (file operation)

Allocates and initializes a new FCB and directory entry for a new file.

22
New cards

Destroy (file operation)

Frees a file's FCB, directory entry, and disk blocks.

23
New cards

Open file table (OFT)

An in-memory data structure tracking all currently open files for efficient access.

24
New cards

Open (file operation)

Verifies access rights, allocates an OFT entry, copies FCB info into it, and returns an OFT index.

25
New cards

Read (file operation)

Copies data from an open file's r/w buffer into memory ("read i, m, n").

26
New cards

r/w buffer

A buffer holding the current disk block of an open file to avoid repeated disk access.

27
New cards

Write (file operation)

Copies data from memory into an open file's r/w buffer, allocating new disk blocks as needed ("write i, m, n").

28
New cards

Seek (file operation)

Moves the current position of an open file to a specified position k, loading a new block into the r/w buffer if needed ("seek i, k").

29
New cards

Close (file operation)

Saves the current file state (length, modified buffer) back to the FCB/disk and frees the OFT entry.

30
New cards

Disk block

A fixed-size sequence of bytes on disk, accessed as a single unit.

31
New cards

Contiguous allocation

Files stored as a contiguous sequence of disk blocks; fast access but causes fragmentation and expansion difficulty.

32
New cards

Linked allocation

Blocks scattered on disk, each pointing to the next; easy to expand but slow sequential/no direct access, less reliable.

33
New cards

Clustered allocation

Sequences of contiguous blocks ("clusters") linked together; a compromise between contiguous and linked.

34
New cards

File allocation table (FAT)

An array (often cached in memory) tracking block chains for files, separate from the blocks themselves; supports efficient sequential and direct access.

35
New cards

Indexed allocation

A dedicated index table per file lists all its block numbers; supports fast sequential and direct access but requires deciding table size upfront (or using expanding multi-level indices, as in Unix).

36
New cards

Bitmap

A data structure with one bit per disk block (1 = allocated, 0 = free) used for free space management.