OS-CHAP-8-13: File Systems and Memory Management

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall with Kai
GameKnowt Play
New
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/395

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

396 Terms

1
New cards

File Concept

Logical address space for data and programs.

2
New cards

File Types

Includes data, program, text, source, executable.

<p>Includes data, program, text, source, executable.</p>
3
New cards

File Attributes

Metadata describing files, like name and size.

4
New cards

File Identifier

Unique tag for file within the system.

5
New cards

File Location

Pointer indicating file's location on device.

6
New cards

File Size

Current size of the file in bytes.

7
New cards

File Protection

Controls read, write, execute permissions.

8
New cards

Directory Structure

Nodes containing information about all files.

<p>Nodes containing information about all files.</p>
9
New cards

File Operations

Actions like create, read, write, delete files.

10
New cards

Open File Table

Tracks all currently open files in memory.

11
New cards

File Pointer

Indicates last read/write position in file.

12
New cards

File Open Count

Counts how many processes have opened a file.

13
New cards

Disk Location

Cache for file access information on disk.

14
New cards

Access Rights

Permissions for processes accessing a file.

15
New cards

File Locking

Controls concurrent access to files by processes.

16
New cards

Shared Lock

Allows multiple processes to read simultaneously.

17
New cards

Exclusive Lock

Prevents other processes from accessing a file.

18
New cards

Mandatory Locking

Access denied based on existing locks.

19
New cards

Advisory Locking

Processes can check lock status before access.

20
New cards

File Locking Example

Java API example for file locking implementation.

21
New cards

Memory-Mapped Files

Maps file contents directly into memory space.

22
New cards

File Truncation

Reduces file size to zero or specified length.

23
New cards

Repositioning within File

Changing current read/write position using seek.

24
New cards

exclusiveLock

A lock preventing other threads from accessing data.

25
New cards

sharedLock

Allows multiple threads to read data simultaneously.

26
New cards

raf.length()

Returns the length of the file in bytes.

27
New cards

ch.lock()

Method to acquire a lock on a file region.

28
New cards

SHARED

Lock mode allowing concurrent read access.

29
New cards

Shared Lock

Allows multiple processes to read a file concurrently.

30
New cards

Exclusive Lock

Allows only one process to write to a file.

31
New cards

File Structure

Organization of data in a file.

32
New cards

Sequential Access

Read/write operations occur in order.

33
New cards

Direct Access

Access data at a specified location directly.

34
New cards

Relative Block Number

Indicates position of data in a file.

35
New cards

Access Methods

Techniques to read/write data in files.

36
New cards

Index File

A structure for fast data location.

37
New cards

ISAM

Indexed Sequential Access Method for file organization.

38
New cards

Disk Structure

Physical organization of data on a disk.

39
New cards

RAID

Redundant Array of Independent Disks for data protection.

40
New cards

Volume

Entity containing a file system.

41
New cards

File System

Manages how data is stored and retrieved.

42
New cards

Directory Operations

Functions like search, create, delete files.

43
New cards

Single-Level Directory

One directory for all users, causing naming issues.

44
New cards

Two-Level Directory

Separate directories for each user, improving organization.

45
New cards

Tree-Structured Directories

Hierarchical organization of directories and files.

<p>Hierarchical organization of directories and files.</p>
46
New cards

Acyclic-Graph Directories

Directories allowing shared subdirectories and files.

47
New cards

Dangling Pointer

Reference to a deleted file or directory.

48
New cards

Control Characters

Special characters used for formatting files.

49
New cards

File Types

Categorization based on name and extension.

50
New cards

Formatted Document

File with specific structure and layout.

51
New cards

Complex Structures

Files with advanced formatting beyond simple records.

52
New cards

Logical Grouping

Organizing files based on shared properties.

53
New cards

Variable Size Records

Records with varying lengths in storage.

54
New cards

Backpointers

Pointers linking to previous records in a chain.

55
New cards

Daisy Chain Organization

Method of linking records in a sequence.

56
New cards

Entry-Hold-Count Solution

Counts entries to manage directory space.

57
New cards

Directory Entry Type

New classification for storing directory information.

58
New cards

Link

Pointer referencing an existing file.

59
New cards

Resolve the Link

Follow pointer to find the actual file.

60
New cards

General Graph Directory

Directory structure allowing multiple links to files.

61
New cards

Cycle Detection Algorithm

Algorithm to prevent cycles in directory links.

62
New cards

Garbage Collection

Process of reclaiming unused directory entries.

63
New cards

Current Directory

Designated directory for file operations.

64
New cards

cd Command

Changes the current working directory.

65
New cards

Creating a File

Done within the current directory context.

66
New cards

Deleting a Directory

Removes entire subtree rooted by the directory.

67
New cards

File Protection

Control over file access by owner.

68
New cards

Types of Access

Permissions: read, write, execute, append, delete, list.

69
New cards

Access-Control List

List defining user permissions for file access.

70
New cards

Virtual Memory

Memory management technique using disk space.

71
New cards

Demand Paging

Loading pages into memory on demand.

72
New cards

Copy-on-Write

Technique to delay copying until necessary.

73
New cards

Page Replacement

Algorithm for replacing pages in memory.

74
New cards

Thrashing

Excessive paging causing performance degradation.

75
New cards

Memory-Mapped Files

Files mapped into memory for access.

<p>Files mapped into memory for access.</p>
76
New cards

Allocating Kernel Memory

Managing memory for operating system kernel.

77
New cards

Working Set

Set of pages actively used by a process.

78
New cards

Virtual Memory

Separation of user logical memory from physical memory.

79
New cards

Logical Address Space

View of memory space larger than physical memory.

80
New cards

Physical Memory

Actual memory hardware where data is stored.

81
New cards

Demand Paging

Loading pages into memory only when needed.

82
New cards

Page Frame

Fixed-size block of physical memory.

83
New cards

Memory Management Unit (MMU)

Maps logical addresses to physical addresses.

84
New cards

Concurrent Programs

Multiple programs running simultaneously in memory.

85
New cards

Swapping

Moving processes between physical memory and disk.

<p>Moving processes between physical memory and disk.</p>
86
New cards

Lazy Swapper

Only loads pages when they are required.

87
New cards

Shared Memory

Memory accessible by multiple processes.

88
New cards

Heap

Dynamic memory allocation area growing upwards.

89
New cards

Stack

Memory area for function calls growing downwards.

90
New cards

Holes in Address Space

Unused memory space between stack and heap.

91
New cards

Throughput

Number of processes completed in a given time.

92
New cards

CPU Utilization

Percentage of time CPU is actively processing.

93
New cards

I/O Operations

Input/Output tasks involving data transfer.

94
New cards

Process Creation

Generating new processes in the operating system.

95
New cards

Virtual Address Space

Logical view of how a process is stored.

96
New cards

Error Code

Code indicating an error during program execution.

97
New cards

Unusual Routines

Non-standard code paths in program execution.

98
New cards

Data Structures

Organized formats for storing and managing data.

99
New cards

Demand Segmentation

Loading segments into memory as needed.

100
New cards

MMU Functionality

Memory Management Unit's role in demand paging.