Fill-the-blank(s) Flashcards
(34 cards)
Mention three file operations: __
Create, Read, Write, Reposition, Delete,
Truncate, Open, Close
Mention two required conditions for deadlocks: ___
Mutual Exclusion, Hold and Wait, Non-preemption, Circular Wait
The dirty/modified bit in page tables is used to indicate ___
page has been
modified/written to
A TLB miss occurs when ___
The required page to frame is not present in the
TLB
The Belady’s anomaly occurs when ___
An increased number of frames leads to a
higher page-fault rate
File-system metadata (not file metadata) includes the following two items: ___ and ___
inode-free-list, data block free list
The main disadvantage of multi-level page tables when compared with flat page
tables is ___
higher page access time during TLB misses
Mention two typical operations on directories: ___
Search for file, list directory, Create file, Rename File, Delete file, traverse
file system
When succesfull, the return value of fork() in a child process is: ___
zero
A trap switches the system from ___ and ___
user, kernel
The dirty bit in page tables is used to indicate ___
whether a page has been modified (written to) since it was loaded into memory. ?
Mention three operations typically performed in directories ___
add - mkdir or touch
delete - rm or rmdir
list - ls ?
In file systems, a hard-link is
A directory entry that associates a file name with an inode ?
Directories in file systems are usually implemented using the following two data
structures
Linked lists, hash tables?
maybe b-trees too?
Mention two types of file system locks
Advisory Locks, Mandatory Locks ?
File system soft-links span
can span across different file systems ?
What are the four necessary conditions for a deadlock to occur
- Mutual Exclusion
- Hold and Wait
- No Preemption
- Circular Wait ?
Two POSIX systems calls used for process management are:
fork(), exec() ?
The referenced bit in a page table is used to indicate
whether a page has been accessed (read or written to) by the program or process ?
File metadata (attributes) includes the following two items
File Size, Timestamps (Creation, Modification, and Access Times) ?
The main disadvantage of single-level page tables when compared with multi-level
page tables is
Inefficiency in Memory Usage for Large Address Spaces ?
Hard links may span
the same file system ?
A TLB hit occurs when
The virtual address being accessed is found in the TLB ?
Mention two (POSIX) pthread function calls
pthread_create(), pthread_join() ?