0% found this document useful (0 votes)
4 views1 page

Os Lab Programs

The document outlines a series of OS lab programs focusing on UNIX commands and CPU scheduling algorithms. It includes tasks such as simulating various CPU scheduling algorithms in C, implementing the Banker's Algorithm for deadlock avoidance and detection, and demonstrating thread execution and inter-process communication. Additionally, it covers the use of UNIX system calls and creating programs that mimic basic UNIX commands.

Uploaded by

sandeepkarry2007
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views1 page

Os Lab Programs

The document outlines a series of OS lab programs focusing on UNIX commands and CPU scheduling algorithms. It includes tasks such as simulating various CPU scheduling algorithms in C, implementing the Banker's Algorithm for deadlock avoidance and detection, and demonstrating thread execution and inter-process communication. Additionally, it covers the use of UNIX system calls and creating programs that mimic basic UNIX commands.

Uploaded by

sandeepkarry2007
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

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 .

You might also like