NEW Contents Flashcards

1
Q

Requirements for ‘local replacement’ and ‘fixed allocation’.

A

Fixed number frames allocated to process.

Page to be replaced chosen from frames allocated to process.

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

Requirements for ‘local replacement’ and ‘variable allocation’.

A

Dynamic number of frames allocated to process from ttt.

Page to be replaced chosen from frames allocated to process.

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

Requirements for ‘global replacement’ and ‘fixed allocation’.

A

Not possible.

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

Requirements for ‘global replacement’ and ‘variable allocation’.

A

Page to be replaced chosen from ALL frames allocated to process.

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

What is the relationship between FIFO and clock page replacement algorithms?

A

Clock policy similar to FIFO, BUT, any frame with bit ‘1’ is passed over by algorithm.

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

Suppose the virtual space access by emory is 6GB, the page size is 8KB, and each page table entry is 6bytes. Compute the number of virtual pages that is implied. Also compute the space required for the whole page table.

A

Size of page table = page size x page table entry
=8 x 1024 x 6
=49152 bytes
=48KB

No. virtual pages = virtual space / page size
=6 x 1024 x 1024 / 8
=786432

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

How does DMA increase system concurrency? How does it complicate hardware design?

A

Allows CPU to perform tasks WHILE DMA system transfers data via system and memory buses.
Complicated -> DMA controller must be integrated into system, and allow DMA controller to be master of memory buses

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

Explain the purpose of open and close operations. What do open and close do?

A

Open informs system that the file is about to become active. Creates BUFFERS, DATA CONTROL BLOCKS, DATA STRUCTURES.
Close informs system that the file is about to become inactive. Outputs LAST BUFFER of information, deletes BUFFERS, DATA CONTROL BLOCKS, DATA STRUCTURES

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

List 3 ways of allocating storage, and give advantages of each.

A

1) CONTIGUOUS - fastest, if no changes. Easiest random access.
2) LINKED - no external fragmentation. File grows without complications
3) INDEXED - direct access. Simplifies file position placement

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