Os Ch3 Flashcards

(22 cards)

1
Q

What are the two parts of main memory in a uniprogramming system?

A

One part for the operating system and one part for the program currently being executed.

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

In a multiprogramming system, what must the user part of memory be subdivided for?

A

To accommodate multiple processes.

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

What is the task of the operating system regarding memory in a multiprogramming system?

A

Memory management.

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

Define ‘Frame’ in the context of memory management.

A

A fixed-length block of main memory.

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

What is a ‘Page’?

A

A fixed-length block of data that resides in secondary memory.

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

What does ‘Segmentation’ refer to?

A

A variable-length block of data that resides in secondary memory.

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

What are the memory management requirements?

A

Relocation, Protection, Sharing, Logical Organization, Physical Organization.

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

What does ‘Relocation’ mean in memory management?

A

The ability to share available main memory among multiple processes.

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

True or False: Each process should be protected against interference by other processes.

A

True.

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

What is the purpose of sharing in memory management?

A

To allow several processes to access the same portion of main memory.

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

How is main memory organized?

A

As a linear or one-dimensional address space.

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

What is the difference between main memory and secondary memory?

A

Main memory provides fast access and is volatile, while secondary memory is slower, cheaper, and usually not volatile.

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

What is overlaying in memory management?

A

Organizing program and data so that various modules can use the same region of memory.

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

Describe ‘Fixed Partitioning’.

A

Main memory is divided into static partitions at system generation time.

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

What is a disadvantage of Fixed Partitioning?

A

Main memory utilization is inefficient due to internal fragmentation.

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

What is ‘Dynamic Partitioning’?

A

Partitions created dynamically, allocating memory exactly as required.

17
Q

What problem arises from Dynamic Partitioning over time?

A

External fragmentation.

18
Q

What technique can be used to overcome external fragmentation?

19
Q

What is the ‘First-fit’ algorithm?

A

Scans memory from the beginning to find the first available block that is large enough.

20
Q

Describe the ‘Next-fit’ algorithm.

A

Scans memory from the location of the last placement to find the next available block that is large enough.

21
Q

What is a disadvantage of the ‘Best-fit’ algorithm?

A

It can lead to more frequent need for memory compaction due to small fragments left behind.

22
Q

What is the purpose of a replacement algorithm in a multiprogramming system?

A

To choose which process to swap out of main memory when there is insufficient memory.