Operations Systems C2 Flashcards

1
Q

What is the critical aspect of main memory management?

A

Main memory management is critical for the entire system’s performance

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

On what two items does the entire system performance depend?

A

The entire system performance depends on the amount of memory available and the optimization of memory during job processing

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

What are the four types of memory allocation schemes introduced

A

The four types of memory allocation schemes introduced are

Single-user systems,

Fixed partitions,

Dynamic partitions,

Relocatable dynamic partitions

DR SF

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

Describe the Single-User Contiguous Scheme

A

Loads the entire program into memory
contigious memory space is now been allocated so that the job(s) can be processed

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

What are the disadvantages of the Single-User Contiguous Scheme?

A

The disadvantages include lack of support for multiprogramming or networking and being cost-ineffective, making it unsuitable for business when introduced in the late 1940s and early 1950s

lack of surport for
multiprogramming
network
and cost in-effective

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

How does Fixed Partitions permit multiprogramming?

A

Fixed Partitions permit multiprogramming by by dividing main memory, with each partition dedicated to one job.

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

What are the responsibilities of Fixed Partitions in memory management?

A

Fixed Partitions are responsible for protecting each job’s memory space and matching job size with partition size

Protecting jobs mem space

job size —>{match} partition size

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

What are the characteristics of Fixed Partitions?

A

Fixed Partitions load the entire program side by side, and job allocation involves choosing the first available section of the Right size.

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

What is the main characteristic of Dynamic Partitions in memory management?

A

Dynamic Partitions allocate memory by creating sections in main memory, providing each job with space as needed.

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

What are the disadvantages of Dynamic Partitions?

A

Disadvantages include full memory utilization only when the first jobs are loaded, subsequent allocation leading to memory waste, and external fragmentation between blocks.

you need to have full mem only when the first job is loaded
and you need to allocate mem waste and external fragmentation bet blocks

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

What are the two methods for free space allocation in memory management?

A

The two methods are First-fit memory allocation and Best-fit memory allocation

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

How does the First-fit memory allocation method work?

A

In First-fit memory allocation, the Memory Manager organizes free/busy lists by memory locations, and a job is assigned the first partition large enough for fast allocation

organizes free/busy list by memory locations

jobs are assigned to the first parition large enough

resulting in memory waste but fast allocation

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

What are the advantages and disadvantages of First-fit memory allocation?

A

The advantage is faster allocation, but the disadvantage is memory waste

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

How does the Best-fit memory allocation method differ from First-fit?

A

In Best-fit memory allocation, free/busy lists are ordered by size, and a job is assigned the smallest partition large enough, reducing wasted space and internal fragmentation.

orgainizes free/busy list by size
and jobs are assigned to the smallest partition to accomindate it

resulting in reducung the memory watage and inter fragmentation but slower in performance wise

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

What is the goal of the Best-fit algorithm?

A

The goal is to find the smallest memory block where the job fits, with the entire table searched before allocation.

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

What is deallocation in memory management?

A

Deallocation involves releasing allocated memory space.

17
Q

How does deallocation work for fixed-partition systems?

A

In fixed-partition systems, the Memory Manager resets the job’s memory block status to “free” upon job completion, using any code (e.g., 0 = free and 1 = busy).

18
Q

What is the algorithm for deallocation in dynamic-partition systems?

A

The algorithm in dynamic-partition systems tries to combine free areas of memory, and it involves three cases depending on the position of the block to be deallocated.

19
Q

What are the three dynamic partition system cases for deallocation?

A
  • Case 1: The block is adjacent to another free block.
    • Case 2: The block is between two free blocks.
    • Case 3: The block is isolated from other free blocks.
20
Q

Describe Case 1 where two free blocks are joined

A

: In Case 1, adjacent blocks are joined, and the list changes to reflect the starting address of the new free block. The memory block size changes, showing the new size for the free space, resulting in two free partitions.

in simple terms, Case 1 involves putting together neighboring free blocks to make a bigger one. The system’s list gets updated to show where this bigger block starts( starting address ), and its size is adjusted accordingly. This results in having two free partitions turning into one larger free partition

21
Q

Explain Case 2 where three free blocks are joined.

A

In Case 2, deallocated memory space is between two free memory blocks. The list changes to reflect the starting address of the new free block, and three free partitions’ sizes are combined. The total size is stored with the smallest beginning address, and the last partition is assigned null entry status.

In Case 2, we merge three free blocks by updating the list with the new starting address. The sizes of the three free partitions are combined, and the total size is stored with the smallest beginning address. The last partition is marked with null entry status.

22
Q

Define Case 3 for deallocating an isolated block.

A

In Case 3, deallocated memory space is isolated from other free areas. The system determines the released memory block status, searches the table for a null entry if the block is not adjacent to any free memory blocks between two other busy areas. The memory block between two busy memory blocks is then returned to the free list.

In Case 3, isolated deallocated memory is addressed separately. The system checks the released memory block status, searches for a null entry if it’s not next to other free blocks, and adds the block between two busy areas back to the free list.

23
Q

What does the Memory Manager do in Relocatable Dynamic Partitions?

A

The Memory Manager in Relocatable Dynamic Partitions relocates programs by gathering all empty blocks together, compacting them to make one memory block large enough to accommodate some or all waiting jobs.

24
Q

What is compaction in the context of memory defragmentation?

A

Compaction involves the operating system reclaiming fragmented memory space sections by relocating most or all programs in memory, achieving a contiguous arrangement. The operating system distinguishes between addresses and data values, adjusting every address and address reference to match the program’s new memory location while leaving data values unchanged.

Compaction is when the operating system rearranges scattered memory sections to create a continuous block. It involves relocating programs in memory, adjusting addresses to match the new locations while keeping data values unchanged.

25
Q

What are the key issues related to compaction in memory management?

A

The key issues include understanding what goes on behind the scenes during relocation and compaction, keeping track of how far each job has moved from its original storage area, and updating lists such as the Free list and Busy list

26
Q

How do special-purpose registers assist in relocation?

A

Special-purpose registers, such as the Bounds register storing the highest location accessible by each program and the Relocation register containing the adjustment value added to each address referenced in the program, help with relocation. The adjustment value is zero if the program is not relocated.

Special registers, like the Bounds register and Relocation register, help move programs to the right place in the computer’s memory. The Relocation register has a number that gets added to addresses in the program, making sure everything is in the correct spot. If a program doesn’t need to move, the adjustment value is zero.

27
Q

What is the goal of compacting and relocating in memory management?

A

The goal is to optimize memory use, improve throughput, and keep overhead as low as possible. Compaction timing options include when a certain memory percentage is busy, when there are waiting jobs, or after a prescribed time period has elapsed

The aim is to make the computer use its memory in the best way, work faster, and not waste too much extra time. Compaction, which is like cleaning up the memory, can happen when a lot of the memory is being used, when there are jobs waiting to be done, or after a certain amount of time has passed.

28
Q

What are the four memory management techniques discussed in the conclusion?

A

The four memory management techniques mentioned in the conclusion are Single-user systems, fixed partitions, dynamic partitions, and relocatable dynamic partitions.

29
Q

What is common to all four memory management techniques?

A

Common to all four techniques is that the entire program is loaded into memory, stored contiguously, and resides in memory until completed.

30
Q

What restrictions do all schemes place on job size?

A

All schemes place severe restrictions on job size, which are limited by the largest partition.

31
Q

What is bounds register in relocation dynamic scheme

A

ensures that the program doesnt hvae access to other memory

32
Q

what is bounds regsiter in relocatable dynamic partition schemme

A

it ensures that the excecution of a program doesnt get access to other memory locations