CS3461 SET 1 (1)
CS3461 SET 1 (1)
CS3461-OPERATINGSYSTEMSLABORATORY
(Regulations2021)
1. a. Install any flavor of windows operating system on top of any bare metal by creating necessary
partitions for OS and user space. (80)
b. 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. (20)
Aim/Principle/Apparatus Tabulation/Circuit/ Calculation Viva-Voce Record Total
required/Procedure Program/Drawing & Results
20 30 30 10 10 100
2. a. 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/Principle/Apparatus Tabulation/Circuit/ Calculation Viva-Voce Record Total
required/Procedure Program/Drawing & Results
20 30 30 10 10 100
3. 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/Principle/Apparatus Tabulation/Circuit/ Calculation Viva-Voce Record Total
required/Procedure Program/Drawing & Results
Page1of8
20 30 30 10 10 100
4. a. Using the appropriate UNIX Command check whether the remote host is responding well or
not. (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 Inter process communication using shared memory
concept. (70)
Aim/Principle/Apparatus Tabulation/Circuit/ Calculation Viva-Voce Record Total
required/Procedure Program/Drawing & Results
20 30 30 10 10 100
5. a. Using the appropriate UNIX command print the last 10 lines of user specified file to standard
output. (15)
b.Write a shell program to find the sum and average of four integers. (15)
c.Write a C Program for simulating a dead lock detection model. (70)
Aim/Principle/Apparatus Tabulation/Circuit/ Calculation Viva-Voce Record Total
required/Procedure Program/Drawing & Results
20 30 30 10 10 100
6. 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/Principle/Apparatus Tabulation/Circuit/ Calculation Viva-Voce Record Total
required/Procedure Program/Drawing & Results
20 30 30 10 10 100
Page2of8
7. a. Using the desired UNIX command re-name 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)
Page3of8
8. a. Give theappropriateUNIXcommandforcreatingauserfilewithspecificcontentanddisplay the same.
(15)
b.Write a C program illustrating the use of wait system call. (15)
c.Write a C program for implementing the semaphore synchronization tool. (70)
Aim/Principle/Apparatus Tabulation/Circuit/ Calculation Viva-Voce Record Total
required/Procedure Program/Drawing & Results
20 30 30 10 10 100
10. 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/Principle/Apparatus Tabulation/Circuit/ Calculation Viva-Voce Record Total
required/Procedure Program/Drawing & Results
20 30 30 10 10 100
11. 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.Writea C program for implementing FIFO page replacement algorithm. (70)
Aim/Principle/Apparatus Tabulation/Circuit/ Calculation Viva-Voce Record Total
required/Procedure Program/Drawing & Results
20 30 30 10 10 100
13. 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/Principle/Apparatus Tabulation/Circuit/ Calculation Viva-Voce Record Total
required/Procedure Program/Drawing & Results
20 30 30 10 10 100
14. 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/Principle/Apparatus Tabulation/Circuit/ Calculation Viva-Voce Record Total
required/Procedure Program/Drawing & Results
20 30 30 10 10 100
15. a. Give the appropriate UNIX command for displaying the block number at the beginning of
each line. (15)
b.Write a Shell program to check whether the given integer is prime or not. (15)
c.Write a C program to implement Random file access technique. (70)
Aim/Principle/Apparatus Tabulation/Circuit/ Calculation Viva-Voce Record Total
required/Procedure Program/Drawing & Results
20 30 30 10 10 100
17. Write a C program for implementing FCFS disk scheduling strategy. (100)
Aim/Principle/Apparatus Tabulation/Circuit/ Calculation Viva-Voce Record Total
required/Procedure Program/Drawing & Results
20 30 30 10 10 100
19. a.Give the UNIX command that forgetting information from the DNSserver. (15)
b.Write a Shellscript for calculating the area of a triangle. (15)
c.Write a C program for implementing BestFit allocation strategy. (70)
Aim/Principle/Apparatus Tabulation/Circuit/ Calculation Viva-Voce Record Total
required/Procedure Program/Drawing & Results
20 30 30 10 10 100
22. Write a C program for implementing LOOK disk scheduling strategy. (100)
Page7of8
23. a.Writeashellprogramtofindthesmallestnumberbetweentwonumbersusingfunction.(30)
b.Write a C program for implementing contiguous file allocation strategy. (70)
Aim/Principle/Apparatus Tabulation/Circuit/ Calculation Viva-Voce Record Total
required/Procedure Program/Drawing & Results
20 30 30 10 10 100
24. Write a C program for implementing SCAN disk scheduling strategy. (100)
Aim/Principle/Apparatus Tabulation/Circuit/ Calculation Viva-Voce Record Total
required/Procedure Program/Drawing & Results
20 30 30 10 10 100
25. Write a C program for implementing C-SCAN disk scheduling strategy. (100)
Aim/Principle/Apparatus Tabulation/Circuit/ Calculation Viva-Voce Record Total
required/Procedure Program/Drawing & Results
20 30 30 10 10 100
26. a.Createtwofilesandmovethemintoadirectorynamed‘dir1’usingthedesiredUNIXcommands.
(15)
b.WriteaShellscriptforconvertingthetemperaturefromFahrenheitto Celsius. (15)
c.WriteaCprogramforimplementinglinkedfileallocationstrategy. (70)
Page8of8