OS Lab Set-1
OS Lab Set-1
Create a directory on your own and include two files and list out the files that are present in
that directory using the necessary UNIX commands.
b. Write a C program for implementing an SJF Scheduling algorithm by displaying process
id,average waiting time and average turnaround time.
SCHEME OF VALUATION
Aim & Procedure Program Results Viva-Voce Record Total
20 30 30 10 10 100
a. List out the number of lines, characters and words present in a file using the necessary UNIX
command.
b. Create a process and print the process id of current process and its parent process.
c. Write a C program for implementing an FCFS Scheduling algorithm by displaying process id,
average waiting time and average turnaround time.
SCHEME OF VALUATION
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.
b. Write a C program for identifying whether the process listed is a parent process or child
process using the necessary system calls.
c. Write a C program for implementing an SJF Scheduling algorithm by displaying process
id,average waiting time and average turnaround time.
SCHEME OF VALUATION
Aim & Procedure Program Results Viva-Voce Record Total
20 30 30 10 10 100
a.Using the appropriate UNIX command print the last 10 lines of user specified file to
standard output.
b. Write a shell program to find the sum and average of four integers.
c. Write a C Program for simulating a deadlock detection model.
SCHEME OF VALUATION
Aim & Procedure Program Results Viva-Voce Record Total
20 30 30 10 10 100
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.
b. Write a shell program to compute simple interest and compound interest.
c. Write a C program for implementing Round Robin Scheduling algorithm.
SCHEME OF VALUATION
Aim & Procedure Program Results Viva-Voce Record Total
20 30 30 10 10 100
a. Using the desired UNIX command rename a file of the user to a new name.
b. Write a Shell program to find the area and circumference of a circle.
c. Write a C program for implementing Priority Scheduling algorithm.
SCHEME OF VALUATION
Aim & Procedure Program Results Viva-Voce Record Total
20 30 30 10 10 100
a. Use the appropriate UNIX command for printing the manual page of any given specific
command.
b. Write a Shell program to generate Fibonacci series.
c. Write a C program for implementing the concept of paging in memory management.
SCHEME OF VALUATION
Aim & Procedure Program Results Viva-Voce Record Total
20 30 30 10 10 100
a. Write the specific UNIX commands for listing the contents of the current directory and also to
remove the same directory.
b. Write a Shell program to find the roots of a quadratic equation.
c. Write a C program for implementing FIFO page replacement algorithm.
SCHEME OF VALUATION
Aim & Procedure Program Results Viva-Voce Record Total
20 30 30 10 10 100
a.Write the appropriate UNIX commands for printing the output to a terminal and to
print theprocesses running in a system.
b. Write a shell program to check whether the given number is positive or negative.
c. Write a C program for implementing LRU page replacement algorithm
SCHEME OF VALUATION
Aim & Procedure Program Results Viva-Voce Record Total
20 30 30 10 10 100
a.Write a shell program to find the sum of two numbers using function programming
b. Write a shell program for implementing sequential file allocation strategy.
SCHEME OF VALUATION
Aim & Procedure Program Results Viva-Voce Record Total
20 30 30 10 10 100
a. Give the appropriate UNIX command for displaying the block number at the beginning
of each line.
b. Write a Shell program to check whether the given integer is prime or not.
c. Write a C program to implement Random file access technique.
SCHEME OF VALUATION
Aim & Procedure Program Results Viva-Voce Record Total
20 30 30 10 10 100
a. Give the UNIX command that for getting information from the DNS server.
b. Write a Shell script for calculating the area of a triangle.
c. Write a C program for implementing Best Fit allocation strategy
SCHEME OF VALUATION
Aim & Procedure Program Results Viva-Voce Record Total
20 30 30 10 10 100
a. Write a shell program to find the smallest number between two numbers usingfunction.
b. Write a C program for implementing contiguous file allocation strategy.
SCHEME OF VALUATION
Aim & Procedure Program Results Viva-Voce Record Total
20 30 30 10 10 100
a. Create two files and move them in to a directory named ‘dir1’ using the desired UNIX
b. Write a Shell script for converting the temperature from Fahrenheit to Celsius.
c. Write a C program for implementing linked file allocation strategy.
SCHEME OF VALUATION
Aim & Procedure Program Results Viva-Voce Record Total
20 30 30 10 10 100
a. Create a directory on your own and include two files and list out the files that are present in
that directory using the necessary UNIX commands.
b. Write a C program for implementing an SJF Scheduling algorithm by displaying process
id,average waiting time and average turnaround time.
SCHEME OF VALUATION
Aim & Procedure Program Results Viva-Voce Record Total
20 30 30 10 10 100
a. List out the number of lines, characters and words present in a file using the necessary UNIX
command.
b. Create a process and print the process id of current process and its parent process.
c. Write a C program for implementing an FCFS Scheduling algorithm by displaying process id,
average waiting time and average turnaround time.
SCHEME OF VALUATION
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.
b. Write a C program for identifying whether the process listed is a parent process or child
process using the necessary system calls.
c. Write a C program for implementing an SJF Scheduling algorithm by displaying process
id,average waiting time and average turnaround time.
SCHEME OF VALUATION
Aim & Procedure Program Results Viva-Voce Record Total
20 30 30 10 10 100
a. Using the appropriate UNIX Command check whether the remote host is responding well ornot.
b. Write a Shell program to count the number of vowels in a line of text.
c. Write a C program for implementing Interprocess communication using shared memory
concept.
SCHEME OF VALUATION
Aim & Procedure Program Results Viva-Voce Record Total
20 30 30 10 10 100
a.Using the appropriate UNIX command print the last 10 lines of user specified file to
standard output.
b. Write a shell program to find the sum and average of four integers.
c. Write a C Program for simulating a deadlock detection model.
SCHEME OF VALUATION
Aim & Procedure Program Results Viva-Voce Record Total
20 30 30 10 10 100