CS3461 Operating Systems Lab Anna University Questions
CS3461 Operating Systems Lab Anna University Questions
List out the number of lines, characters and words present in a file using the necessary UNIX
command. (15)
b. Create a process and print the process id of current process and its parent process. (15)
c. Write a C program for implementing an FCFS Scheduling algorithm by displaying process id,
average waiting time and average turnaround time. (70)
Aim&Procedure Program Results Viva-Voce Record Total
(20) (30) (30) (10) (10) (100)
a. Find a specific file in a directory and print only the unique lines that are present in that file
using appropriate UNIX commands. (15)
b. Write a C program for identifying whether the process listed is a parent process or child
process using the necessary system calls. (15)
c. Write a C program for implementing an SJF Scheduling algorithm by displaying process id,
average waiting time and average turnaround time. (70)
Aim & Program Results Viva-Voce Record Total
Procedure (30) (30) (10) (10) (100)
(20)
a. Using the appropriate UNIX Command check whether the remote host is responding well ornot. (15)
b. Write a Shell program to count the number of vowels in a line of text. (15)
c. Write a C program for implementing Interprocess communication using shared memory
concept. (70)
Aim & Program Results Viva-Voce Record Total
Procedure (30) (30) (10) (10) (100)
(20)
a. Give the correct UNIX commands that display a list of users who are currently logged in to a
computer and which prints the calendar of the current month and year. (15)
b. Write a shell program to compute simple interest and compound interest. (15)
c. Write a C program for implementing Round Robin Scheduling algorithm. (70)
Aim & Program Results Viva-Voce Record Total
Procedure (30) (30) (10) (10) (100)
(20)
a. Using the desired UNIX command rename a file of the user to a new name. (15)
b. Write a Shell program to find the area and circumference of a circle. (15)
c. Write a C program for implementing Priority Scheduling algorithm. (70)
Aim & Program Results Viva-Voce Record Total
Procedure (30) (30) (10) (10) (100)
(20)
a. Use the appropriate UNIX command for printing the manual page of any given specific
command. (15)
b. Write a Shell program to generate Fibonacci series. (15)
c. Write a C program for implementing the concept of paging in memory management. (70)
Aim & Program Results Viva-Voce Record Total
Procedure (30) (30) (10) (10) (100)
(20)
a. Write the specific UNIX commands for listing the contents of the current directory and also to
remove the same directory. (15)
b. Write a Shell program to find the roots of a quadratic equation. (15)
c. Write a C program for implementing FIFO page replacement algorithm. (70)
Aim & Program Results Viva-Voce Record Total
Procedure (30) (30) (10) (10) (100)
(20)
a. Write a shell script to display the digits which are in odd position in a given number. (30)
b. Write a C program for implementing Optimal page replacement algorithm. (70)
Aim & Program Results Viva-Voce Record Total
Procedure (30) (30) (10) (10) (100)
(20)
a. Write a shell program to find the sum of two numbers using function programming (30)
b. Write a shell program for implementing sequential file allocation strategy. (70)
Aim & Program Results Viva-Voce Record Total
Procedure (30) (30) (10) (10) (100)
(20)
a. Write a Shell program to find the smallest digit from a number. (30)
b. Write a C program for implementing Worst Fit allocation strategy. (70)
Aim & Program Results Viva-Voce Record Total
Procedure (30) (30) (10) (10) (100)
(20)
a. Write a shell program to find the smallest number between two numbers using function. (30)
b. Write a C program for implementing contiguous file allocation strategy. (70)
Aim & Program Results Viva-Voce Record Total
Procedure (30) (30) (10) (10) (100)
(20)
a. Give the suitable UNIX commands that translates the contents of a file from lowercase to
uppercase (15)
b. Write a Shell program to find the sum of all numbers between 50 and 100, which are divisible
by 3 and not divisible by 5. (15)
c. Write a C program for implementing the concept of semaphores to provide synchronisation
while accessing a critical section. (70)
Aim & Program Results Viva-Voce Record Total
Procedure (30) (30) (10) (10) (100)
(20)
a. Write a Shell program to check the given string is palindrome or not. (30)
b. Write a C program for implementing the first fit memory allocation method. (70)
Aim & Program Results Viva-Voce Record Total
Procedure (30) (30) (10) (10) (100)
(20)
a. Write a Shell program to execute various UNIX commands using case statements. (30)
b. Write a C program for implementing SSTF disk scheduling algorithm. (70)
Aim & Program Results Viva-Voce Record Total
Procedure (30) (30) (10) (10) (100)
(20)
a. Demonstrate the virtual machine concept through the installation of Linux OS as a guest
operating system on Windows OS. (90)
b. Give the Unix command for creating a directory of user's choice. (10)
Aim & Program Results Viva-Voce Record Total
Procedure (30) (30) (10) (10) (100)
(20)
a. Give the syntax of UNIX command for printing the manual of ls command. (10)
b. Write a shell program for implementing best fit memory allocation technique. (90)
Aim & Program Results Viva-Voce Record Total
Procedure (30) (30) (10) (10) (100)
(20)
a. Give the appropriate UNIX command for displaying the byte count of a file. (10)
b. Write a C program to implement FIFO page replacement strategy. (90)
Aim & Program Results Viva-Voce Record Total
Procedure (30) (30) (10) (10) (100)
(20)
a. Use the right UNIX command for printing the length of the longest line in a file. (15)
b. Write a Shell program to check and display 10 leap years. (15)
c. Write a C program to implement LRU page replacement policy. (70)
Aim & Program Results Viva-Voce Record Total
Procedure (30) (30) (10) (10) (100)
(20)
a. Write a Shell program to check the given number and its reverse are same. (30)
b. Write a C proram to implement index sequential file access mechanism. (70)
Aim & Program Results Viva-Voce Record Total
Procedure (30) (30) (10) (10) (100)
(20)