OS LAB PROGRAMS
1 . Practicing of Basic UNIX Commands. (10)
Who , ls , cd , mkdir , rmdir , rm , cal , date , cat , man .
2. Write a C Program to simulate First Come First Served CPU Scheduling (FCFS) Algorithm. (With
SUM)
3. Write a C Program to simulate Shortest Job First CPU scheduling (SJF) Algorithm. (With SUM)
4. Write a C Program to simulate Priority CPU scheduling Algorithm. (With SUM)
5. Write a C Program to simulate Round-Robin (RR) CPU scheduling Algorithm. (With SUM and
Tracing)
6. Write a C program to implement Bankers Algorithm for Dead Lock Avoidance. ( With SUM)
7. Write a C program to implement Bankers Algorithm for Dead Lock Detection. (With SUM)
8. Write a C program to illustrate concurrent execution of threads using pthreads library.
9. Write a C program to solve producer-consumer problem using Semaphores.
10. Write C programs using the following UNIX operating system calls fork, wait.
11. Write a C Program using system calls opendir, readdir, and closedir.
12. Write a C Program to Simulate UNIX commands like cp, ls .