Operating System File Management and Memory Management

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

1/83

flashcard set

Earn XP

Description and Tags

A comprehensive study set focused on the principles and mechanisms related to file and memory management in operating systems.

Last updated 2:20 PM on 4/6/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

84 Terms

1
New cards

File as OS Abstraction

A container for data, managed by the OS, that is persistent and can be named.

2
New cards

Non-volatile

Type of memory or storage where data survives after termination.

3
New cards

File Metadata

Information stored in the FCB/inode about a file including size, ownership, permissions, and access type.

4
New cards

ctime

The time when the metadata of a file was last changed.

5
New cards

mtime

The time when the contents of a file were last modified.

6
New cards

Atime

The time when a file was last accessed.

7
New cards

Ownership

Refers to the user and group that have permission to manage a file.

8
New cards

Permissions

Rules that determine who can read, write, or execute a file.

9
New cards

Sequential Access

Accessing data in order from the current position, moving step by step through the file.

10
New cards

Random Access

Accessing data at any location by specifying an offset, bypassing sequential order.

11
New cards

Indexed Access

Accessing data using a key or index structure rather than byte positions.

12
New cards

Open-file properties

Properties of a file related to its current position and access mode.

13
New cards

Current Position (CP)

Indicator of where the next read or write will occur in a file.

14
New cards

File Name

A label used to identify a file, stored in the directory and not a property of the file itself.

15
New cards

File Extension

A convention to manage file associations, typically appearing as part of a file's name.

16
New cards

File Control Block (FCB)

A data structure that contains all properties of a file and its location on disk.

17
New cards

Open File Descriptor

A unique identifier returned by the OS when a file is opened.

18
New cards

Create File Operation

Allocates an entry in the file system and creates a new file.

19
New cards

Delete File Operation

Removes a file's directory entry, marking it for deletion in the file system.

20
New cards

Open File Operation

Prepares a file for use by returning a file descriptor.

21
New cards

Close File Operation

Releases file resources and may delete the file if unlinked.

22
New cards

Write Operation

Copies data from memory to a file and updates the current position.

23
New cards

Read Operation

Copies data from a file to memory and updates the current position.

24
New cards

Seek Operation

Changes the current file position without reading or writing data.

25
New cards

File Locking

Mechanism that restricts access to a file to prevent conflicts.

26
New cards

Sync/Flush

Forces buffered data to be written to secondary storage.

27
New cards

Master Boot Record (MBR)

Data structure that contains information about all disk partitions.

28
New cards

Contiguous Allocation

All blocks are allocated on the same track in adjacent sectors.

29
New cards

Linked-list Allocation

Each block contains a pointer to the next, allowing flexible memory usage.

30
New cards

File Allocation Table (FAT)

Maintains a chain of blocks in a global table for access.

31
New cards

Indexed Allocation

Directly stores all block numbers for fast access through the FCB.

32
New cards

Free Space Management

Tracking unused disk blocks to allocate them to files when needed.

33
New cards

Dirty State

A condition indicating that the file system may be inconsistent due to incomplete operations.

34
New cards

Journaling

Maintaining a log of intended changes to allow recovery after failures.

35
New cards

Virtual Memory

Uses secondary storage as if it were RAM, expanding usable memory space.

36
New cards

Page Table

Data structure that maps virtual addresses to physical addresses.

37
New cards

Page Fault

Occurs when a program accesses a page not currently in RAM.

38
New cards

Demand Paging

Loading pages into memory only when they are needed.

39
New cards

FIFO Replacement Policy

Evicts the oldest page in memory first among all pages.

40
New cards

LRU Replacement Policy

Evicts the least recently used page in memory.

41
New cards

Clock Replacement Policy

A practical approximation of LRU, using accessed bits to track usage.

42
New cards

Bélády's Anomaly

Observation where increasing frames can lead to more page faults under FIFO.

43
New cards

Fixed Allocation

Assigns a fixed number of frames to each process up front.

44
New cards

Dynamic Allocation

Processes draw from a common pool of frames for better flexibility.

45
New cards

Thrashing

Condition where excessive page faults hinder program execution.

46
New cards

Working-set window (Δ)

Counts distinct pages accessed in a recent time frame to allocate frames.

47
New cards

Page-fault rate (PFR) Algorithm

Regulates frame allocation based on observed fault rates.

48
New cards

File Name Mapping

Directory structure mapping file names to their respective FCBs.

49
New cards

Soft Link

Directory entry that stores a path to another file.

50
New cards

Hard Link

Directory entry that points directly to the same FCB as the original file.

51
New cards

Swap Partition

A fixed-sized area on disk dedicated to swapping data in/out of RAM.

52
New cards

Swap File

A regular file that temporarily holds pages from memory.

53
New cards

Memory-Mapped Files

Files directly mapped into a process's virtual address space.

54
New cards

Eviction Policy

Strategy used by an OS to decide which page to remove from memory.

55
New cards

Accessed Bit (A)

Indicates whether a page has been used recently, influencing replacement choices.

56
New cards

Dirty Bit (D)

Indicates whether a page has been modified and needs saving upon eviction.

57
New cards

Write/Protection Bit (W)

Determines permissions for reading and writing to a memory page.

58
New cards

L Bit (Locked Bit)

Indicates a page cannot be evicted from memory.

59
New cards

Sectors

Smallest storage unit on a hard disk, typically 4 KB.

60
New cards

Tracks

Concentric circles on a hard disk where sectors are located.

61
New cards

File System

An organization method for storing and retrieving files on a storage device.

62
New cards

Access Mode

Specifies how a file can be opened: for reading, writing, or appending.

63
New cards

Buffered Data

Data stored temporarily before being written to a file or disk.

64
New cards

Recovery Process

Restoring consistency in file systems after a crash or failure.

65
New cards

Metadata Mismatches

A condition where file metadata does not align with actual file contents.

66
New cards

File System Structures

Organizational frameworks such as directories, tables, and FCBs used in file management.

67
New cards

Path Component

Individual segments in a file's directory path used for locating files.

68
New cards

Cache Copy

A temporary copy of file metadata stored in RAM after opening a file.

69
New cards

File System Cleaning

Process of restoring the file system to a consistent state.

70
New cards

Bit Vector

A bitmap representation of free and used blocks within a storage device.

71
New cards

File Linking

The process of allowing a single file to be referenced by multiple names.

72
New cards

File Creation Behavior

Determines the outcome when trying to create an existing file.

73
New cards

Accessing Data via Keys

Utilizing metadata keys instead of byte positions to access file data.

74
New cards

File Recovery Techniques

Methods used to restore lost or damaged file data post-failure.

75
New cards

Dynamic Memory Management

Processes that handle memory allocation and deallocation during runtime.

76
New cards

Operating System Abstractions

Higher-level representations of hardware resources managed by the OS.

77
New cards

Secondary Storage

Permanent storage solution for files that remains intact when the system is powered down.

78
New cards

RAM-based Files

Temporary files stored in RAM for speed, often used for caching.

79
New cards

User Permissions

Configurations determining what actions a user can perform on a file.

80
New cards

File System Initialization

Setup process wherein file management structures and controls are established.

81
New cards

Examining File Data

Process of accessing and manipulating the content of files.

82
New cards

OS File Operations

Fundamental methods provided by an operating system for managing files.

83
New cards

Data Integrity

Ensuring that data is accurate, consistent and unrecoverable after it is created.

84
New cards

System Recovery Mechanism

Systems in place to recover from failures and restore normal functionality.

Explore top notes

note
Evolution
Updated 1160d ago
0.0(0)
note
Unit 1 - Chemistry of Life
Updated 1090d ago
0.0(0)
note
Nervous System & Mental Health
Updated 508d ago
0.0(0)
note
Chapter 3: Differentiation
Updated 1084d ago
0.0(0)
note
Required Documents
Updated 721d ago
0.0(0)
note
The Mole and Equations
Updated 1195d ago
0.0(0)
note
Beware of Banking Fees
Updated 1246d ago
0.0(0)
note
Evolution
Updated 1160d ago
0.0(0)
note
Unit 1 - Chemistry of Life
Updated 1090d ago
0.0(0)
note
Nervous System & Mental Health
Updated 508d ago
0.0(0)
note
Chapter 3: Differentiation
Updated 1084d ago
0.0(0)
note
Required Documents
Updated 721d ago
0.0(0)
note
The Mole and Equations
Updated 1195d ago
0.0(0)
note
Beware of Banking Fees
Updated 1246d ago
0.0(0)

Explore top flashcards

flashcards
Unit 5 Lesson 1
43
Updated 1062d ago
0.0(0)
flashcards
Unit 1-2 BIO Midterms
49
Updated 1133d ago
0.0(0)
flashcards
La inmigración
84
Updated 117d ago
0.0(0)
flashcards
Vocab Unit 5
25
Updated 1180d ago
0.0(0)
flashcards
apush
33
Updated 1220d ago
0.0(0)
flashcards
Biology - DNA to Protein
40
Updated 1214d ago
0.0(0)
flashcards
Unit 5 Lesson 1
43
Updated 1062d ago
0.0(0)
flashcards
Unit 1-2 BIO Midterms
49
Updated 1133d ago
0.0(0)
flashcards
La inmigración
84
Updated 117d ago
0.0(0)
flashcards
Vocab Unit 5
25
Updated 1180d ago
0.0(0)
flashcards
apush
33
Updated 1220d ago
0.0(0)
flashcards
Biology - DNA to Protein
40
Updated 1214d ago
0.0(0)