OS LAB Problem Statements
OS LAB Problem Statements
14. Write a program for deadlock detection algorithm for following example.
15. Following is the list of available blocks in the main memory and the process size for each
process (P0 to P3).
blockSize[] = {100, 500, 200, 300, 600}
processSize[] = {212, 417, 112, 426}
Find which memory block is allocated to which process using following placement
strategies:
a. First Fit
b. Worst fit c. Best fit
16. Following is the list of available blocks in the main memory and the process size for each
process (P0 to P3).
blockSize[] = {100, 500, 200, 300, 600}
processSize[] = {212, 417, 112, 426}
Find which memory block is allocated to which process using following placement
strategies:
1) First Fit
2) Next fit
3) Worst fit
17. Following is the list of available blocks in the main memory and the process size for each
process (P0 to P3).
blockSize[] = {100, 500, 200, 300, 600}
processSize[] = {212, 417, 112, 426}
Find which memory block is allocated to which process using following placement
strategies:
1) Next fit
2) Worst fit
3) Best fit
23. Consider the order of request for cylinder access of the disk is - (98, 183, 37, 122, 14,
124, 65, 67) and current position of Read/Write head is: 53. Find the total head
movements to access the data on the cylinder using following disk scheduling
algorithms:
1) SCAN
2) C-SCAN
24. Consider the order of request for cylinder access of the disk is - (98, 183, 37, 122, 14,
124, 65, 67) and current position of Read/Write head is: 53. Find the total head
movements to access the data on the cylinder using following disk scheduling
algorithms:
1) SSTF
2) SCAN
25. Consider the order of request for cylinder access of the disk is - (98, 183, 37, 122, 14,
124, 65, 67) and current position of Read/Write head is: 53. Find the total head
movements to access the data on the cylinder using following disk scheduling
algorithms:
1) FCFS
2) SCAN
26. Consider the order of request for cylinder access of the disk is - (98, 183, 37, 122, 14,
124, 65, 67) and current position of Read/Write head is: 53. Find the total head
movements to access the data on the cylinder using following disk scheduling
algorithms:
1) SSTF
2) C SCAN
27. Consider the order of request for cylinder access of the disk is - (98, 183, 37, 122, 14,
124, 65, 67) and current position of Read/Write head is: 53. Find the total head
movements to access the data on the cylinder using following disk scheduling
algorithms:
1) FCFS
2) C SCAN
35. Write a program for deadlock detection algorithm for following example.
38. Following is the list of available blocks in the main memory and the process size for each
process (P0 to P3).
blockSize[] = {100, 500, 200, 300, 600}
processSize[] = {212, 417, 112, 426}
Find which memory block is allocated to which process using following placement
strategies:
1) Next fit
2) Worst fit
3) Best fit