Os Lab
Os Lab
MARK ALLOTMENT
INTERNAL EXAMINER
: 20
Program
: 40
: 30
Viva voce
: 10
Total
: 100
EXTERNAL EXAMINER
1. Write a UNIX command and Shell program for the following and perform the suitable
operations:
a. List the files and directory.
b. Find the user of the system
c. Display the Date and Calender
d. Write the Shell program for arithmetic operations
e. Write the shell script for multiplication table
(100)
2. Write a UNIX to create a menu with the following and perform the operations.
a. Count the number of alphabets in a string.
b. Display the names of all ordinary files from the current directory and all its
subdirectories whose names end in sing.
c. Search the key element in a list of numbers.
(100)
3. Write a shell script to perform the following using a menu:
a. Create a file detail which contains the names of those files in the current
directory which begin with cat.
b. Locate the ordinary files that have been created exactly one day before and
whose names begin with c and copy them to the user directory
c. Check if the given input string is odd or even not.
(100)
4. Write a C program to implement First Come First Serve CPU scheduling algorithm
where processes arrive at different timings. Display the following
results in a table
format.
a. Arrival time and Burst time of every process.
b. Waiting time and turnaround time of every process.
c. Average waiting time and turnaround time.
(100)
quantum time 5 time units. Processes do not arrive at the same time. Display the
following results in a table format.
a. Arrival time and Burst time of every process.
b. Waiting time and turnaround time of every process.
c. Average waiting time and turnaround time.
(100)
6. Write a C program to implement Shortest Job First CPU scheduling algorithm where
Processes do not arrive at the same time. Display the following results in a table
format.
a.
b.
c.
d.
(100)
10. Illustrate with a program how memory management is done using LRU page
replacement algorithm.
11. Illustrate with a program how memory management is done using LFU page
(100)
replacement algorithm.
(100)
12. Write a C program to implement an Algorithm for Dead Lock Detection
(100)
13. Write a C program to implement an Algorithm for Dead Lock Detection
(100)
(100)
(100)
(100)
(100)
(100)
(100)
(100)
INTERNAL EXAMINER
EXTERNAL EXAMINER