Section 3 - D686 - Operating Systems

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

1/129

flashcard set

Earn XP

Description and Tags

Chapter 8 and 9 + section test

Last updated 12:26 PM on 11/3/25
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

130 Terms

1
New cards

virtual memory

A technique that allows the execution of a process that is not completely in memory. Also, separation of computer memory address space from physical into logical, allowing easier programming and larger name space.

2
New cards

virtual address space

The logical view of how a process is stored in memory.

3
New cards

sparse

In memory management, a term describing a page table that has noncontiguous, scattered entries. A sparse address space has many holes.

4
New cards

demand paging

bringing in parts of a program from storage into memory only when they are needed

5
New cards

valid-invalid bit

a bit used in the page table to indicate whether a page is currently in memory (valid) or not (invalid)

6
New cards

page fault

an event that occurs when a process tries to access a page not currently loaded in physical memory, causing the operating system to load the page from secondary storage into memory

7
New cards

free frame

an available block of physical memory where a page can be loaded from secondary storage

8
New cards

effective access time (EAT)

a measure of the average time it takes to access a page in memory, considering both memory access time and the overhead associated with page faults

9
New cards

modify bit/dirty bit

An MMU bit used to indicate that a frame has been modified (and therefore must have its contents saved before page replacement). 

10
New cards

over-allocating

Generally, providing access to more resources than are physically available. In virtual memory, allocating more virtual memory than there is physical memory to back it.

11
New cards

page replacement

In virtual memory, the selection of a frame of physical memory to be replaced when a new page is allocated.

12
New cards

victim frame

In virtual memory, the frame selected by the page-replacement algorithm to be replaced.

13
New cards

page replacement algorithm

an algorithm used to select a page to be swapped out of main memory when a new page needs to be loaded

14
New cards

reference string

a sequence of page accesses used to demonstrate and evaluate page replacement algorithms by showing the order in which pages are requested

15
New cards

first in, first out (FIFO) algorithm 

page replacement method where the oldest page in memory is replaced first

16
New cards

optimal page replacement

page replacement method that replaces the page that will not be used for the longest period of time in the future

17
New cards

Belady’s anomaly

a phenomenon where increasing the available number of page frames in memory may result in an increase in the number of page faults

18
New cards

least recently used (LRU) algorithm

a page replacement method where the page that has not been used for the longest time is replaced when a page fault occurs

19
New cards

allocation of frames

dividing memory into fixed-size chunks assigned to processes

20
New cards

fixed allocation

assigning a set number of frames to each process permanently

21
New cards

proportional allocation

giving frames to processes based on their size or needs

22
New cards

global replacement

selecting a frame from any process for replacement

23
New cards

equal allocation

giving every process the same number of frames

24
New cards

priority replacement algorithm 

an algorithm that replaces pages based on priority

25
New cards

thrashing

excessive paging due to insufficient physical memory

26
New cards

working set

the collection of pages most recently used by a process

27
New cards

local replacement algorithm

an algorithm for managing memory that restricts page replacement to pages within the current process

28
New cards

locality model

a strategy for managing memory based on where and how often pages are accessed

29
New cards

page-fault frequency

how often a page fault occurs during system operations

30
New cards

working-set model

a method of tracking the most recently used pages in memory

31
New cards

What is an advantage of using virtual memory in an operating system?

Allows programs to use more memory

32
New cards

How does demand paging optimize memory usage?

Loads only the necessary parts of a program

33
New cards

What happens when a process tries to access a page that is not currently in memory?

A page fault occurs.

34
New cards

What is pure demand paging?

Loading pages only when needed

35
New cards

Which mechanism is used to handle page faults efficiently in demand paging?

Valid-invalid bit

36
New cards

What is the purpose of page replacement in memory management?

Replace less frequently used pages

37
New cards

Which algorithm replaces the page not used for the longest time?

Least recently used

38
New cards

What is a disadvantage of the optimal page replacement algorithm?

It requires future knowledge of reference strings.

39
New cards

How does the translation look-aside buffer (TLB) enhance memory management?

By speeding up address translation

40
New cards

What is thrashing in memory management?

When the CPU spends excessive time swapping pages

41
New cards

cache

a temporary storage area that holds copies of frequently accessed data to speed up processing

42
New cards

bind

to connect or link together, such as associating a symbolic address with a relocatable address for program execution

43
New cards

absolute code

program instructions that reference fixed memory addresses for direct execution

44
New cards

logical address

address generated by the CPU that requires translation to a physical address for use in memory, essentially the same as a virtual address in this context

45
New cards

physical address

actual location in physical memory where data or instructions are stored

46
New cards

logical space address

range of all addresses generated by a program before translation into physical addresses

47
New cards

physical address space

range of all physical addresses available in a computer system

48
New cards

memory management unit (MMU)

hardware enabling a CPU to access and translate addresses between logical and physical memory

49
New cards

dynamic loading

loading of program routines into memory only when called during execution, not at program start

50
New cards

dynamically linked libraries (DLLs)

system libraries linked to user programs at runtime, allowing shared resources across processes

51
New cards

static linking

combining system libraries into a binary program image before execution, as done by the loader

52
New cards

shared libraries

libraries loaded once into memory and accessed by multiple processes, facilitating efficient memory use

53
New cards

contiguous memory allocation

A memory allocation method in which each process is contained in a single section of memory that is contiguous to the section containing the next process.

54
New cards

variable-partition 

A simple memory-allocation scheme in which each partition of memory contains exactly one process.

55
New cards

hole

In variable partition memory allocation, a contiguous section of unused memory. Also an alternative rock band formed by Courtney Love.

56
New cards

dynamic storage-allocation problem

The problem of how to satisfy a request for size n of memory from a list of free holes.

57
New cards

first-fit

In memory allocation, selecting the first hole large enough to satisfy a memory request.

58
New cards

best-fit

In memory allocation, selecting the smallest hole large enough to satisfy the memory request.

59
New cards

worst-fit

In memory allocation, selecting the largest hole available.

60
New cards

external fragmentation

Fragmentation in which available memory contains holes that together have enough free space to satisfy a request but no single hole is large enough to satisfy the request. More generally, the fragmentation of an address space into small, less usable chunks.

61
New cards

50-percent rule

A statistical finding that fragmentation may result in the loss of 50 percent of space.

62
New cards

dynamic storage allocation

the process of assigning and freeing memory during a program's run time as needed

63
New cards

memory protection

a method to control and restrict how programs access memory in a computer, preventing errors and security issues

64
New cards

partitioning 

dividing memory into sections to manage different processes

65
New cards

fixed partitioning memory management

a scheme dividing memory into fixed-sized partitions, each holding a single process

66
New cards

overlays

a method of loading only necessary parts of a program into memory, swapping others as needed

67
New cards

variable partition memory management scheme

a method where memory is allocated dynamically, varying in size based on process needs

68
New cards

fragmented

memory scattered into non-contiguous pieces, making the efficient use of memory challenging

69
New cards

external fragmentation

unused memory scattered in non-contiguous blocks, causing inefficient use of memory

70
New cards

compaction

the process of consolidating fragmented free memory space to create a large contiguous block

71
New cards

internal fragmentation

wasted memory within allocated regions due to fixed-size partitions

72
New cards

What defines a logical address space using base and limit registers?

Base and limit registers

73
New cards

How do base and limit registers contribute to hardware address protection?

By defining the range of accessible addresses

74
New cards

Which process binds logical addresses to physical addresses?

Address binding

75
New cards

Which characteristic differentiates a logical address space from a physical address space?

Logical address space is used by the CPU, while physical address space is used by memory.

76
New cards

Which mechanism protects memory from being accessed incorrectly?

Memory protection

77
New cards

How is memory allocated and managed in a system?

By using fixed and variable partitions

78
New cards

What ensures that each process has its own separate memory space?

Memory protection

79
New cards

Which issue is caused by fixed partition memory management?

Internal fragmentation

80
New cards

What causes external fragmentation in memory management?

Dynamic allocation of memory blocks

81
New cards

What is the 50% rule in memory management?

50% of memory is lost to fragmentation.

82
New cards

A page number is represented by 10 bits. How many entries are in the page table?

210

83
New cards

A 32-bit address is divided into 20 bits for the page number and 12 bits for the offset. ______ is the page number and ______ is the offset for the logical address 0x139A4BD7.

0x139A4, 0xBD7

84
New cards

paging

A common memory management scheme that avoids external fragmentation by splitting physical memory into fixed-sized frames and logical memory into blocks of the same size called pages.

85
New cards

frames

Fixed-sized blocks of physical memory.

86
New cards

page

A fixed-sized block of logical memory.

87
New cards

page number (p)

Part of a memory address generated by the CPU in a system using paged memory; an index into the page table.

88
New cards

page offset

Part of a memory address generated by the CPU in a system using paged memory; the offset of the location within the page of the word being addressed.

89
New cards

d

Part of a memory address generated by the CPU in a system using paged memory; the offset of the location within the page of the word being addressed.

90
New cards

page table

In paged memory, a table containing the base address of each frame of physical memory, indexed by the logical page number.

91
New cards

huge pages

A feature that designates a region of physical memory where especially large pages can be used.

92
New cards

frame table

In paged memory, the table containing frame details, including which frames are allocated, which are free, total frames in the system, etc.

93
New cards

page-table-base register (PTBR)

In paged memory, the CPU register pointing to the in-memory page table.

94
New cards

translation look-aside buffer (TLB)

A small, fast-lookup hardware cache used in paged memory address translation to provide fast access to a subset of memory addresses.

95
New cards

TLB miss

A translation look-aside buffer lookup that fails to provide the address translation because it is not in the TLB.

96
New cards

wired down

A term describing a TLB entry that is locked into the TLB and not replaceable by the usual replacement algorithm.

97
New cards

address-space identifier

A part of a TLB entry that identifies the process associated with that entry and, if the requesting process doesn't match the ID, causes a TLB miss for address-space protection.

98
New cards

ASIDs

A part of a TLB entry that identifies the process associated with that entry and, if the requesting process doesn't match the ID, causes a TLB miss for address-space protection.

99
New cards

flush

Erasure of entries in, e.g., a TLB or other cache to remove invalid data.

100
New cards

hit ratio

The percentage of times a cache provides a valid lookup (used, e.g., as a measure of a TLB's effectiveness).

Explore top flashcards

WY 4 Unit 4
Updated 1063d ago
flashcards Flashcards (40)
Ordlista 1
Updated 498d ago
flashcards Flashcards (30)
Bio Cell Membrane
Updated 512d ago
flashcards Flashcards (22)
AP EURO unit 1
Updated 904d ago
flashcards Flashcards (34)
Vocab 6B
Updated 1148d ago
flashcards Flashcards (23)
german final vocab
Updated 1157d ago
flashcards Flashcards (78)
WY 4 Unit 4
Updated 1063d ago
flashcards Flashcards (40)
Ordlista 1
Updated 498d ago
flashcards Flashcards (30)
Bio Cell Membrane
Updated 512d ago
flashcards Flashcards (22)
AP EURO unit 1
Updated 904d ago
flashcards Flashcards (34)
Vocab 6B
Updated 1148d ago
flashcards Flashcards (23)
german final vocab
Updated 1157d ago
flashcards Flashcards (78)