COMSCI2101 - OS M3

0.0(0)
studied byStudied by 1 person
GameKnowt Play
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/28

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.

29 Terms

1
New cards

Memory Management

Refers to how computers manage their main memory.

2
New cards

Main memory

Is where resources that the CPU can

immediately access are kept.

3
New cards

Access Memory

refers to memory that can be accessed by the CPU, can refer to RAM, Cache, or Virtual Memory based on concept.

4
New cards

Random Access Memory (RAM)

A form of volatile memory, storing data and instructions that the CPU needs to access immediately.

5
New cards

Volatile

Is lost upon shutdown or when computers are turned off.

6
New cards

Core Memory

Non-volatile memory used before semiconductors gained prominence, using tiny magnetic rings to store bits of information.

7
New cards

Primary Storage

A broader term including all types of main

memory, directly accessible by the CPU,

primarily referring to RAM and Cache.

8
New cards

Single-user Contiguous Scheme

Requires a minimal amount of work

done by the operating system’s

memory manager compared to the

other schemes.

-kloads entire programs

into memory, allocating as much as

needed.

- It does not support

multiprogramming or networking, as

it processes jobs sequentially.

9
New cards

Fixed Partitions

Makes use of static partitions, permitting the use of multiprogramming.

These partition sizes remain static unless the computer system is shutdown, reconfigured, and restarted.

10
New cards

Dynamic Partitions

Divides memory into variable-sized

partitions based on the size of the

processes or jobs being executed,

ensuring that jobs are given only as

much memory as they request.

Job allocation is done first come, first serve.

11
New cards

- First Fit Memory Allocation

- Best Fit Memory Allocation

Free partitions are allocated using the

following strategies: (2)

12
New cards

First Fit

Loads jobs into the first partition fitting the requirements.

Results in faster allocation

Faster, focused on Speed

13
New cards

Best Fit

Loads jobs into the smallest partition fitting the requirements.

Results in least wasted space

Efficient, focused on Space

14
New cards

Deallocation

Refers to the process of freeing an allocated memory space.

15
New cards

fixed-partition systems

For ___________, deallocation is simply done by resetting the status of a memory block to “free”.

16
New cards

dynamic partitions

For __________, the memory

manager may do one of the following:

- Join two free blocks

- Join three free blocks

- Deallocate an isolated block

17
New cards

Relocatable Dynamic Partitions

Relocates programs to gather all

empty blocks, compacting them to

make a block of memory large

enough to accommodate jobs waiting

to get in.

18
New cards

Compaction

a.k.a Garbage Collection or

Defragmentation

19
New cards

Compaction

Performed by an operating system using the relocatable dynamic partitions scheme to reclaim fragmented sections of memory space.

20
New cards

Virtual Memory

A storage method that considers a portion of secondary memory memory as main memory, giving the user the impression that their main memory is large.

21
New cards

Paging

A storage mechanism used to retrieve processes or jobs from secondary memory to primary memory

22
New cards

Pages

Small equal blocks that are divisions of

processes in memory.

23
New cards

Frame

Small equal pieces that are divisions of

physical memory.

- Each process is contained in pages and are stored into their respective frames of memory.

24
New cards

Demand Paging

Refers to the process of calling the pages to

main memory from secondary memory

upon demand or request.

25
New cards

Page Replacement Algorithm

Is needed to decide which page needs to be replaced when a new page comes in.

26
New cards

Page Fault (*)

Occurs when a program tries to access a

memory page not present in memory.

27
New cards

Page Hit (↓)

Occurs when a program tries to access a

memory page already present in memory.

28
New cards

First In First Out (FIFO) Replacement

Algorithm

The simplest page replacement

algorithm, it removes the pages that

have been in memory the longest.

29
New cards

Least Recently Used (LRU) Replacement

Algorithm

The page replacement algorithm that

swaps out the pages that show the

least amount of recent activity, with

the assumption that these pages are

the least likely to be used again.