OS LAB
OS LAB
What are the physical addresses for the following logical addresses?
a. 0, 430
b. 1, 10
c. 2, 500
d. 3, 400
e. 4, 112
Q.5) How Virtual Memory works? What are its advantages and disadvantages?
Q.6) Consider a paging hardware with a TLB. Assume that the entire page table and
all the pages are in the physical memory. It takes 10 milliseconds to search the TLB
and 80 milliseconds to access the physical memory. If the TLB hit ratio is 0.6, the
effective memory access time (in milliseconds) is _________.
A. 120
B. 122
C. 124
D. 118
Q.11) What is segmentation? Why it is required? What are its advantages and
disadvantages? Differentiate between Paging and Segmentation?
Q.12) What is Segmented Paging? What are its advantages and disadvantages?
Q.18) What is RAID? How RAID works? What are various levels of RAID ? What are
the advantages and disadvantages of RAID.
Q.19 Explain File System Structure. What happens when you turn on your computer?
Q.20) How Disk space is allocated to files? Describe the following methods which can
be used for allocation.
1. Contiguous Allocation.
2. Extents
3. Linked Allocation
4. Clustering
5. FAT
6. Indexed Allocation
7. Linked Indexed Allocation
8. Multilevel Indexed Allocation
9. Inode
Q.21) Describe the following things about I/O systems in Operating System:
1. I/O devices
2.I/O System calls
3. DMA controllers
4. Memory-Mapped I/O
5. Direct Virtual Memory Address
Q.24) Describe the way to apply the monitors to solve the dinning philosopher’s
problem with example.
Q.25) Consider the following snapshot of a system:
Allocation Max
A B C D A B C D
P0 3 0 1 4 5 1 1 7
P1 2 2 1 0 3 2 1 1
P2 3 1 2 1 3 3 2 1
P3 0 5 1 0 4 6 1 2
P4 4 2 1 2 6 3 2 5
Using the banker’s algorithm, determine whether or not each of the following
states is unsafe. If the state is safe, illustrate the order in which the processes
may complete. Otherwise, illustrate why the state is unsafe.
a) Available = (0,3,0,1)
b) Available = (1,0,0,2)
______________________________