Friday, 14 March 2014

Operating system lab programs [update]

Operating system lab programs


1.  First Come First Serve (FCFS)    

2. Shortest Remaining Time First (SJF with preemption ,SRTF)  

3. Priority Scheduling (Preemptive)  

4. Round Robin (RR)      

For the above programs, input should be given in increasing order of arrival time (applicable for SRTF and Priority). Inorder to reduce the complexity of the code, the flexibility of giving random order of arrival times is not included in the program. You can also apply any sorting technique to this code to add that feature. 

These programs are working perfectly for almost all cases, if any bugs are there please comment below.