Os Experiments
Os Experiments
(CSPC-232)
Lab Assignments
Lab 1. To understand the Basic of Operating Systems.
(a) Define OS.
(b) Different types of OS.
(c) Examples of OS.
Lab 8. Write a program in C/C++/Java to simulate the Banker’s algorithm for deadlock avoidance.
Consider at least 3 processes in the system, with 4 resource classes having at least one resource
instance for each class. Assume the values for Available, Allocation, MAX, and request from
particular process from your side. Program must reflect for two cases, where safe sequence exists
for one and safe sequence does not exist for another.
Lab 9. Write a C program to simulate following Memory Allocation Strategies in both Contiguous
and Non-Contiguous Fashion.
(a) First Fit Allocation
(b) Best Fit Allocation
(c) Worst Fit Allocation