Memory Management Flashcards

1
Q

What is memory management for ?

A

Relocation of memory of each process.

A processor once done a process it allocates and recovers the space from it .

The memory for one process shouldn’t be able to access another’s process memory.

Furthermore the same memory for each process would be inefficient .

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

What does a system do to avoid memory fragmentation?

A

All of the processes memory are stacked at one end of the memory.

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

What happens when a text segment of a process is shared with the other processes?

A

It can be only read

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

What are the memory management techniques?

A
Fixed partitioning
Dynamic partitioning
Simple segmentation
Virtual memory segmentation
Simple paging 
Shared address with paging
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Fixed partitioning :

A

When a process is activated a fixed allocated memory is given to each process

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

Problems of fixed partitioning

A

The entire process memory is parted into same size partitions

Halting problem
You cant predict the space needed for a process

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

Dynamic partitioning

A

The entire process memory maps into different sized partitions.

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

Problems with dynamic partitioning

A

Even though the memory is used more efficiently than fixed partitioning. There is still a halting problem to the partitions may be too big or too small .
Also memory needs to be continuously slided to get space

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

Simple segmentation:

A

Loads all process memory map segments into different sized partitions

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

Problem simple segmentation

A

Code and data can be in two different places

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

Virtual memory segmentation

A

It loads some process memory maps segments into different sized partitions

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

Virtual memory advantages

A

Cope with little memory

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

Virtual memory disadvantages

A

Not efficient due variability sized partitions

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