Memory Management Flashcards

1
Q

An abstraction of physical memory, virtualized by the OS that defines the range of memory addresses.

A

The Address Space/Logical Memory

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

The process of keeping several programs in memory, ready to run at any given moment.

A

Multiprogramming

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

An extension of multiprogramming, the process of switching between all active programs at regular intervals.

A

Time-sharing/Multitasking

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

The 4 Sections of a Process in Memory:

A

1) Text
2) Data
3) Heap
4) Stack

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Which part of memory is for dynamically allocated variables?

A

Heap

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Which part of memory is for local variables?

A

Stack

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Physical memory is divided into fixed-units, typically 4 bytes, called what?

A

Words

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

When are the 3 times address binding can happen?

A

1) Compile time
2) Load time
3) Execution time

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

The logical address space is defined by a pair of what?

A

Registers (Base and Limit)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Logical to physical memory mapping that involves loading the entire program into memory.

A

Static Relocation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Logical to physical memory mapping that splits program into segments and uses multiple registers to hold addresses.

A

Segmentation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

A type of logical/physical mapping that leads to external fragmentation

A

Static Relocation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Segmentation created this new problem compared to Static Relocation.

A

Holes, with a variety of sizes.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

The process by which the OS keeps track of free space in memory using a linked list to find space for different processes.

A

Free-Space Management

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

4 Free-Space Management allocation strategies:

A

1) First Fit
2) Next Fit
3) Best Fit
4) Worst Fit

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

2 Ways to fix external fragmentation:

A

1) Swapping

2) Compacting

17
Q

A memory management scheme that divides virtual memory and physical memory into the same sized blocks

A

Paging

18
Q

3 things paging eliminates?

A

1) External Fragmentation
2) Free-Block searching
3) Memory Compacting

19
Q

In paging, logical memory is divided into pages. What is a page’s physical counterpart?

A

Frame

20
Q

What is the typical size of a page?

A

4096 Bytes

21
Q

With paging, what are the registers replaced with that are used in segmentation and static relocation?

A

Page Table

22
Q

In paging, this stores the virtual-to-physical address translations

A

Page Table

23
Q

There is one page table per _______

A

Process

24
Q

What 2 things must every address have with paging?

A

1) Page Number (index)

2) Page Offset (physical)

25
Q

This occurs when the page required is not currently in RAM.

A

Page Fault