Quizzes 4, 5, 6 Flashcards

1
Q

A(n) ____ page table has one page entry for each real frame of memory.

A

inverted

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

Which of the following dynamic storage-allocation algorithms results in the smallest leftover hole in memory?

best fit, worst fit, first fit, none of them

A

best fit

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

How many page table for the whole OS?

A

one for each process

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

T/F:

TLB is a special hardware to speed up page table search.

A

T

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

T/F:

There is a separate TLB for each process.

A

F

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

T/F:

Segmentation memory management is much faster than paging memory management.

A

F

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

Without TLB, for each memory address, considering page table, how many times do we need to really access memory?

A

2

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

The leftover hole in segmentation memory management is called

A

external fragmentation

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

The leftover within a page is called

A

internal Fragmentation

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

T/F:

When page fault happens, if there is no free frame available, the OS will report an error.

A

F

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

A RAID structure is ___

A

primarily used to ensure higher data reliability

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

The mapping of a logical address to a physical address is done in hardware by the ______.

A

memory-management-unit (MMU)

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

T/F:

The allocated portions of memory using a buddy system are all the same size.

A

F

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

T/F:

If the page-fault rate is too high, the process may have too many frames.

A

F

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

T/F:

Increase page size will increase the chance of TLB hit.

A

T

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

The free-space list can be implemented using a bit vector approach. Which of the following is a drawback of this technique?

This technique is not feasible for small disks.
It is not feasible to keep the entire list in main memory for large disks
The technique is more complicated than most other techniques.
To traverse the list, each block must be read on the disk

A

It is not feasible to keep the entire list in main memory for large disks

17
Q

Which of the following allocation methods ensures that only one access is needed to get a disk block using direct access?

contiguous allocation
indexed allocation
linked allocation
hashed allocation

A

contiguous allocation

18
Q

In an environment where several processes may open the same file at the same time, which one is true?

the operating system typically uses two internal tables called the system-wide and per-process tables to keep track of open files.
the operating system typically uses two internal tables called the system-wide and per-disk tables to keep track of open files.
the operating system typically uses three internal tables called the system-wide, per-disk, and per-partition tables to keep track of open files.
the operating system typically uses only one internal table to keep track of open files.

A

the operating system typically uses two internal tables called the system-wide and per-process tables to keep track of open files.

19
Q

A(n) ____ is a buffer that holds output for a device that cannot accept interleaved data streams.

A

spool

20
Q

Which of the following is a principle that can improve the efficiency of I/O and reduce CPU usage?

Move processing primitives into hardware, e.g., DMA
Decrease concurrency using DMA controllers
Increase the number of context switches.
Use small data transfers

A

Move processing primitives into hardware, e.g., DMA

21
Q

Direct memory access is a technique that___

A

enables the associated controller to read and write data directly from/to primary memory with no CPU intervention during data transfer.

22
Q

The list of processes waiting for a particular I/O device is called a(n) ____.

A

device queue

23
Q

T/F:

Starvation may occur in the FCFS disk-scheduling discipline.

A

F

24
Q

T/F:

In symbolic link, two i-nodes will be created for a file.

A

F

25
Q

T/F:

SSDs often use an FCFS disk-scheduling algorithm.

A

T