Sample Questions Final 2019
Sample Questions Final 2019
The system has 5 Threads (T1, T2, T3, T4 and T5) and 5 Resources (R1,
R2, R3, R4 and R5). T2 owns R5 but waits for R4, T1 owns R4 but waits
for R1, T4 owns R2 but waits for R3, T3 owns R5 and R1 but waits for R2,
T5 owns R3 but waits for R5.
Question 2: Consider the following snapshot of a system:
1) Available = (0, 3, 0, 1)
2) Available = (1, 0, 0, 2)
Question 3.1: What is the difference between external fragmentation
and internal fragmentation? Why paging can eliminate external
fragmentation but not internal fragmentation?
Frame 1
Second‐chance
Frame 2
Frame 3
5. If the sum of the working – set sizes increases, exceeding the total number of available
frames:
a) then the process crashes
b) the memory overflows
c) the system crashes
d) the operating system selects a process to suspend
Question 6.1: What are the two distinct parts of a file system? What
are their functions?
Question 6.3: Consider a file system that uses inodes to represent files.
Disk blocks are 8 KB in size, and a pointer to a disk block requires 4
bytes. This file system has 12 direct disk blocks, as well as single, double,
and triple indirect disk blocks. What is the maximum size of a file that
can be stored in this file system?