For 2/16 Flashcards

1
Q

What does memory management do?

A

Brings processes together in main memory for execution

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

What does memory management rely on?

A

Virtual memory segmentation and paging

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

What is a hard/fixed partition?

A

Applications cannot change the size of their memory partitions. The partitions are made in OS design

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

In hard partitions, how are applications designed if they need more memory?

A

They are designed to work around the partitions. It’s the programmer’s job

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

When can the OS swap things in a fixed partition?

A

If all partitions are full and none are ready or running

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

What is the major problem with a fixed partition?

A

If a program cannot fit into a partitions, it needs to use overlays

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

Why is fixed partition inefficient?

A

A program can occupy a whole partition if it does not need all that space. This is called internal fragmentation

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

What is unequal size partitions?

A

The remedy for fixed partitioning. Larger programs can be accommodated without overlays.

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

What happens to smaller programs in unequal size partitions?

A

They use memory inefficiently

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

What limits processes in unequal sized partitions?

A

The max amount of partitions

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

What is dynamic partitioning?

A

Partitions are of varying size and number. Processes get as much memory as they need

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

What is external fragmentation?

A

Dynamically partitioned memory becomes more and more fragmented and utilization declines. Not enough contiguous space to run a process.

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

What is compaction?

A

The OS addresses fragmentation by shifting processes so that they are are contiguous. But it wastes CPU time.

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

Best Fit Placement Algorithm

A

A block is chosen closest to the request size

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

First Fit Placement Algorithm

A

Selects the first block that is big enough to accommodate a process

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

Next Fit Placement Algorithm

A

Starts looking for the next block that is large enough from the last placement

17
Q

What is the buddy system?

A

A hybrid of fixed and dynamic partitioning schemes.

18
Q

What happens to available space in the buddy system?

A

It is all treated as a single block

19
Q

Logical Address

A

Reference to a memory location independent of the current assignment of data to memory

20
Q

Relative Address

A

Address is expressed relative to some known point

21
Q

Physical/Absolute Address

A

Address is that of the actual location in main memory

22
Q

How does a virtual memory system work?

A

A small portion of a program is loaded into memory to increase multiprogramming. And there are pointers to secondary memory

23
Q

What is a problem with virtual memory?

A

Hard drives are slow

24
Q

What is paging?

A

You partition memory into equal size chunks that relatively small, and the process is divided into small chunks the same size of the pages

25
Q

What exactly is a page?

A

A chunk of a process

26
Q

What exactly is a frame?

A

Available chunks of memory

27
Q

Why are pages designed to be small?

A

To avoid fragmentation

28
Q

What is the page table?

A

Contains the frame location for each page in a process. Maintained by the OS and the processor must know how to access the current process and produce a phys. address