Fill-the-blank(s) Flashcards

(34 cards)

1
Q

Mention three file operations: __

A

Create, Read, Write, Reposition, Delete,
Truncate, Open, Close

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

Mention two required conditions for deadlocks: ___

A

Mutual Exclusion, Hold and Wait, Non-preemption, Circular Wait

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

The dirty/modified bit in page tables is used to indicate ___

A

page has been
modified/written to

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

A TLB miss occurs when ___

A

The required page to frame is not present in the
TLB

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

The Belady’s anomaly occurs when ___

A

An increased number of frames leads to a
higher page-fault rate

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

File-system metadata (not file metadata) includes the following two items: ___ and ___

A

inode-free-list, data block free list

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

The main disadvantage of multi-level page tables when compared with flat page
tables is ___

A

higher page access time during TLB misses

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

Mention two typical operations on directories: ___

A

Search for file, list directory, Create file, Rename File, Delete file, traverse
file system

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

When succesfull, the return value of fork() in a child process is: ___

A

zero

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

A trap switches the system from ___ and ___

A

user, kernel

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

The dirty bit in page tables is used to indicate ___

A

whether a page has been modified (written to) since it was loaded into memory. ?

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

Mention three operations typically performed in directories ___

A

add - mkdir or touch

delete - rm or rmdir

list - ls ?

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

In file systems, a hard-link is

A

A directory entry that associates a file name with an inode ?

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

Directories in file systems are usually implemented using the following two data
structures

A

Linked lists, hash tables?

maybe b-trees too?

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

Mention two types of file system locks

A

Advisory Locks, Mandatory Locks ?

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

File system soft-links span

A

can span across different file systems ?

17
Q

What are the four necessary conditions for a deadlock to occur

A
  1. Mutual Exclusion
  2. Hold and Wait
  3. No Preemption
  4. Circular Wait ?
18
Q

Two POSIX systems calls used for process management are:

A

fork(), exec() ?

19
Q

The referenced bit in a page table is used to indicate

A

whether a page has been accessed (read or written to) by the program or process ?

20
Q

File metadata (attributes) includes the following two items

A

File Size, Timestamps (Creation, Modification, and Access Times) ?

21
Q

The main disadvantage of single-level page tables when compared with multi-level
page tables is

A

Inefficiency in Memory Usage for Large Address Spaces ?

22
Q

Hard links may span

A

the same file system ?

23
Q

A TLB hit occurs when

A

The virtual address being accessed is found in the TLB ?

24
Q

Mention two (POSIX) pthread function calls

A

pthread_create(), pthread_join() ?

25
Multilevel page tables have the following main advantage over flat page tables
Reduced Memory Usage (Space Efficiency) ?
26
The valid/invalid bit in page tables is used to indicate
whether a page table entry corresponds to a valid, accessible page in physical memory ?
27
A page is
a fixed-size block of virtual memory in a computer system that is managed by the paging memory management scheme. ?
28
A frame is
a fixed-size block of physical memory, which is the unit used to store pages from a program's virtual memory in a paging system ?
29
The dirty bit in a page table is used to indicate
whether a page has been modified (written to) since it was loaded into memory. ?
30
The main advantage of single-level page tables when compared with multi-level page tables is: _____
Simplicity and Faster Lookup ?
31
The TLB contains entries mapping _______________ addresses to ____________ addresses
virtual addresses to physical addresses ?
32
A deadlock avoidance algorithm is
a method used in operating systems to ensure that deadlocks (a situation where two or more processes are blocked forever, waiting for each other to release resources) are prevented from occurring in the system ?
33
Mention three file access APIs in Unix
open(), read(), write() ?
34
A page faults happens when
a process tries to access a page of memory that is not currently in physical RAM ?