Os Lab Question
Os Lab Question
List of Assignments
Operating System Lab (PCC-CS592)
Dept : CSE
Sl no. Assignments
CSE
1st_Year
2nd_Year DAA_Lab
3rd_Year OS_Lab
4th_Year
ECE
IT
1st_Year
2nd_Year DAA_Lab
3rd_Year OS_Lab
4th_Year
EE
3 Write a shell script to add, subtract, multiply and divide two numbers.
4 Write a shell script to show addition of two numbers using Command Line Arguments.
5 Write a shell script to show Swapping of two numbers using and without using 3 rd variable.
8 Write a shell script that calculates the average marks of a student considering that number of subjects
are five and also calculate the corresponding grade on average.
18 Write a shell script which calculates total number of files and sub-directories present in a specific
directory.
19 Write a shell script which counts total number lines in a file without using wc -l command.
20 Write a shell script which works similar to wc command. Script can receive the options – -l, -w and -
c to indicate whether number of lines, number of words, number of characters from the input string
is to be counted. The user may use any all of options. Your script should be intelligent enough to
identify invalid options and reject them.
21 A shell script receives even number of file names, suppose 4 file names are supplied, then 1st file
should get copied into the 2nd file and 3rd file should get copied into the 4th file, so on. If odd number
of files are supplied, no copy should take place and an error message should be displayed.
23 Write a shell script to check whether a number is Palindrome or not by using function.
24 Write a shell script which implement a process and perform a task of printing a word “Happy
Birthday”.
25 Write a script to implement First Come First Served (FCFS) CPU Scheduling Algorithm.
26 Write a script to implement Shortest Job First (SJF) CPU Scheduling Algorithm.
28 Write a Linux/Unix C program for the implementation of Producer Consumer algorithm using
Semaphore.