Os Models Questions
Os Models Questions
Following are the questions asked for the model lab examination.
(a) (b)
1.Implement LRU policy for page Use two independent pthreads to separate
replacement. odd and even indexed numbers from an
array of numbers and display them
2.Linked file allocation method Get a number in the parent. Square it in the
child and write the result to a file.
3.SJF Pre-emptive algorithm Select the maximum number from the
array in the parent. Print 2^1,2^2.....2^max
in the child and write it to a file.
4.Optimal page replacement algorithm. Cp command using command line
arguments.
5.Worst fit strategy using linked list Use pthreads to square the even and cube
the odd indices in an array and display the
values.
6.Linked file allocation method Get the number of elements in the parent,
the array in the child, reverse it in the
grandchild and display.
7.FCFS disk scheduling algorithm Get the number of elements in the parent,
the array in the child, display it in the
grandchild.
8.FIFO page replacement algorithm. Concatenate two files using command-line
arguments.
9.CLOOK disk scheduling algorithm. Use pthreads to square the even and cube
the odd indices in an array and display the
values.
10.First fit strategy using linked list Use pthreads to multiply two matrices and
display the result.
11.LOOK disk scheduling algorithm. Use pthreads to display the odd and even
numbers in an array separately.
12.Pre-emptive Priority CPU scheduling. Get the matrix in the child. Calculate the
row-sum in the parent using message
queues.
13.SCAN disk scheduling algorithm. Search the given pattern in the given file.
14.CSAN disk scheduling algorithm. List the files of a directory RECURSIVELY
using command-line arguments.
15.Linked file allocation method. Select the maximum number from the
array in the parent. Print 2^1,2^2.....2^max
in the child and write it to a file.
16.Non-Pre-emptive Priority CPU List the files of a directory RECURSIVELY
scheduling. using command-line arguments.
17.FCFS CPU scheduling algorithm. Concatenate two files using command-line
arguments.
27.
28.
29.
30.