Week 6: Memory Management: Fixed partitions Flashcards

1
Q

What does the process manager determine?

A

When a process will run

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

What does the memory manager determine?

A

Where a process will run.

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

What is the “first law” of computing?

A

However much memory a computer has, a program will be written that needs more.

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

What are the three main types of computer memory?

A
  • Cache (fastest, on or near the processor)
  • Primary memory (RAM/ROM)
  • Secondary memory (hard disks or offline storage).
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How does memory speed compare between types?

A
  • Cache is accessed in nanoseconds
  • Primary memory in a few nanoseconds, and
  • Hard disks in milliseconds.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Why can’t all memory be cache?

A

Cache memory is expensive and limited in size due to economic and design constraints.

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

How does primary memory differ from secondary memory?

A

Primary memory is directly addressable by the processor, while secondary memory requires data transfer to primary memory for use.

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

In the simplest memory model, how is memory allocated?

A

One process is loaded into memory at a time and uses as much memory as needed.

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

What technique can increase memory availability in a simple model?

A

Using overlays to load portions of a program as needed.

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

What is contiguous storage allocation?

A

Memory is allocated in a single, continuous block with no gaps.

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

What is non-contiguous storage allocation?

A

Memory is allocated in multiple blocks or segments that may be scattered in primary memory.

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

How does multiprogramming improve processor utilization?

A

By running multiple processes, the processor can stay busy even when one process is waiting for I/O.

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

How does fixed partition multiprogramming work?

A

Memory is divided into fixed-size partitions, which may vary in size and are allocated to processes as needed.

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

What does the operating system track in fixed partitions?

A

Which partitions are in use and which are free.

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

What is the downside of multiple partition queues?

A

Memory can be wasted when large partitions are empty while small jobs wait.

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

How does a single queue address multiple partition queues issue and what is the downside of this approach?

A

A single queue reduces wasted memory but may still lead to inefficiencies with small jobs in large partitions.

17
Q

What does address binding involve?

A

Assigning memory addresses to data and instructions, such as connecting a function call to its library implementation.

18
Q

Why is address binding complex in multiprogramming?

A

The specific memory location of a process is not known beforehand, requiring relocation solutions.

19
Q

What is the relocation problem?

A

Memory addresses need to adapt based on where a process is loaded in memory.

20
Q

How can relocation be handled dynamically?

A

By using base (or segment) registers to calculate addresses relative to a program’s starting point.

21
Q

What happens when a process is moved in memory?

A

The base register is updated, and all address calculations automatically adjust.

22
Q

How is memory protection enforced?

A

Using a limit register along with a base register to ensure memory access stays within valid bounds.

23
Q

What happens if a memory address exceeds the limit?

A

An error occurs, preventing access to unauthorized memory.