You are on page 1of 2

B.

Tech/IT-512

2021

(March)

Information Technology

OPERATING SYSTEM LABORATORY

( 5th Semester )

(New Syllabus)

Full Marks - 30

Time – 3 hours

The figure in the margin indicates the full marks for the questions

1. (a) Write a program in C to simulate SJF (non-preemptive) process scheduling algorithm.


20

(b) Write a program in C using UNIX system call to merge two files to create a new file and
display the contents of the all three files. 10

2. (a) Write a program in C to simulate FIFO page replacement algorithm. 20

(b) Write a program using UNIX system call to create a file and display the contents of the file.
10

3. (a) Write a program in C to simulate FCFS CPU scheduling algorithm. 20

(b) Write a program using UNIX system call to reverse a file and display the contents of the file.
10

..........................................................................................................................................................

4. (a) Write a program in C to simulate optimal page replacement algorithm. 20

(b) Write a program using UNIX system call to concatenate two files and display the contents of
the concatenated file on the standard output. 10
5. (a) Write a program in C to implement Banker’s deadlock avoidance algorithm. 20

(b) Write a program using UNIX system call to create a file and display the contents of the file.
10

----------------------------------------------------------------------------------------------------------------------------------

6. (a) Write a program in C to simulate priority scheduling (non-preemptive) algorithm. 20

(b) Write a program using UNIX system call to copy a file and display the contents of the both
files. 10

-------------------------------------------------------------------------------------------------------------------------------------

7. (a) Write a program in C to simulate Least Recently Used (LRU) page replacement algorithm.
20

(b) Write a program using UNIX system call to reverse a file and display the contents of the file.
10

-------------------------------------------------------------------------------------------------------------------------------------
8. (a) Write a program in C to simulate Round Robin (RR) scheduling algorithm. 20

(b) Write a program using UNIX system call to take the input from the standard input and
display it in the standard output. 10

------------------------------------------------------------------------------------------------------------------------------------

9. (a) Write a program in C to simulate priority scheduling (non-preemptive) algorithm. 20

(b) Write a program using UNIX system call to merge two files and display the contents of the
merged file.
10

--------------------------------------------------------------------------------------------------------------------------------------

10. (a) Write a program in C to implement Banker’s deadlock avoidance algorithm. 20

(b) Write a program using UNIX system call to take the input from the standard input and
store it in a file and display the contents of the file. 10

You might also like