Bahria University, Lahore Campus Department of Computer Sciences Lab Journal 09 (Fall 2018) Course: Operating System Lab Date: Course Code: CSL - 320 Max Marks: 40 Faculty’s Name: Lab Engineer: Sarah Chaudhry Name: Amjad Ali Khokhar Enroll No: 03-134161-003 Objective(s) : To write a C program to implement the CPU scheduling algorithm for FIRST COME FIRST SERVE. To write a C program to implement the CPU scheduling algorithm for Shortest job first. Lab Tasks : Task 1 : Calculate the Average Time using FCFS Algorithm. Task 2: Write the output of the program for First Come First Serve. Task 3 : Calculate the Average Time using SJF Algorithm. Task 4 : Write the output a program for Shortest Job First. Lab Grading Sheet : Task Max Mark s Obtained Marks Comments( if any ) 1. 10 2. 10 3. 10 4. 10 Total 40 Signature Note : Attempt all tasks and get them checked by your Lab. Instructor .
Lab Manual Operating System | CSL-320 Lab 10: Scheduling Objective(s): To write a C program to implement the CPU scheduling algorithm for FIRST COME FIRST SERVE. To write a C program to implement the CPU scheduling algorithm for Shortest job first. Tool(s) used: Ubuntu, VIM Editor First Come First Serve CPU scheduler will decide which process should be given to the CPU for its execution. For this it uses different algorithms to choose among the process. One among that algorithm is FCFS algorithm. In this algorithm, the process which arrive first is given to the CPU after finishing its request only it will allow CPU to execute other process.
You've reached the end of your free preview.
Want to read all 7 pages?
- Fall '18
- Zia Ul Rehman
- Scheduling algorithm, Department of Computer Science