0% found this document useful (0 votes)
74 views2 pages

Os Models Questions

The document lists 30 model examination questions for an operating systems lab exam. The questions cover a range of topics related to CPU and disk scheduling algorithms, memory allocation strategies, file allocation methods, and use of processes and threads. Sample questions involve implementing page replacement policies, scheduling algorithms like SJF and priority scheduling, and using processes and threads to perform tasks like sorting arrays and multiplying matrices in a distributed manner.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
74 views2 pages

Os Models Questions

The document lists 30 model examination questions for an operating systems lab exam. The questions cover a range of topics related to CPU and disk scheduling algorithms, memory allocation strategies, file allocation methods, and use of processes and threads. Sample questions involve implementing page replacement policies, scheduling algorithms like SJF and priority scheduling, and using processes and threads to perform tasks like sorting arrays and multiplying matrices in a distributed manner.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

OPERATING SYSTEMS LAB- MODEL EXAMINATION 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.

18. Non-Pre-emptive SJF CPU scheduling Cp using command-line arguments.


19.Indexed file allocation algorithm. List the files of a directory RECURSIVELY
using command-line arguments.
20.Producer-consumer Problem. Use pthreads to display the odd and even
numbers in an array separately.
21.Find out the safe sequence to avoid the Search the given pattern in the given file.
deadlock.
22.Best fit memory allocation strategy. Use pthreads to display the odd and even
numbers in an array separately.
23.SSTF Disk scheduling 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.
24.FCFS Disk scheduling algorithm. Concatenate two files using command-line
arguments.
25.Round robin CPU scheduling 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.
26.

27.

28.

29.

30.

You might also like