3) Memory Management Flashcards

1
Q

What does Memory Management primarily deal with?

A

It deals with main memory and its relationship to secondary storage.

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

What is Memory

A

Memory is seen as a linear array of addressable locations.

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

Main memory is a random access memory. Define random access.

A

All of its locations are equally accessible

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

What is Memory Management? (MM)

A

MM is the task of storing and managing multiple processes in the main memory, with the help of the OS and the hardware.

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

Define Relocation.

A

Relocation is the idea of converting a logical address into a physical address.

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

what “Protection Protocol” must memories follow?

A

Processes must not reference a memory location that is already assigned to another process without permission.

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

Sometimes, areas of memory must be shared by multiple processes. Give 2 reasons of when this is the case.

A
  • Several processes are executing the same program.
  • Cooperating processes.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

While the MM is a linear address space, programs are often organised in a hierarchical manner. State how they are sorted.

A
  • Based on different types of programs (read-write, read-only, execute only, private, shareable).
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Primary memory is ____________ (fast/slow) but _____________ (cheap/expensive).

Secondary memory is ______________ (fast/slow) but _______________ (cheap/expensive).

A

Primary memory is fast (fast/slow) but expensive (cheap/expensive).

Secondary memory is slow (faster/slower) but cheap (cheap/expensive).

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

What is “Memory Overlaying”?

A

This is when programs or section of programs are sent to the main memory, overwriting existing programs.

(Note: This places a heavy burden on the programmer, because it is difficult to debug an can cause ‘disk trashing’).

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

What is a partition?

A

A partition is a set of contiguous locations which holds a process. There are dynamic and fixed partitions.

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

What is fragmentation?

A

This is the phenomenon of when free storage space is divided into 2 non-contiguous storage spaces.

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

Define a relative address.

A

A relative address is similar to a logical address of which points to a certain point of the program

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

What is “Address Translation”?

A

This is the process of which the forming the physical address from the logical address.

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

Define Internal and External Fragmentation.

A

Internal Process - This is when a process is assigned to memory, leaving access memory. Because the memory space was larger than the process itself.

External Process - This is when a process is a assigned to a non-contiguous memory, making it difficult for the process to be stored there.

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