Skip to content

a C program that simulates the Round Robin scheduling and calculates the waiting time, turnaround time for each process, and also represents the execution order using a Gantt chart.

Notifications You must be signed in to change notification settings

AKCadhikari/OS_c-program

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

C program that simulates the Round Robin scheduling and calculates the waiting time, turnaround time for each process, and also represents the execution order using a Gantt chart. Program Requirements

  1. Input: Number of processes. Burst time for each process. Time quantum.
  2. Output: Waiting time for each process. Turnaround time for each process. Average waiting time. Average turnaround time. Execution order (Gantt chart). Steps to Implement the Program
  3. Define a Structure for Process: Process ID. Burst time. Remaining burst time. Waiting time. Turnaround time.
  4. Calculate Waiting Time: Use the remaining burst time to simulate process execution. Track the execution order.
  5. Calculate Turnaround Time: Turnaround time is the sum of burst time and waiting time.
  6. Print Results: Print waiting time, turnaround time for each process. Print average waiting and turnaround times. Print the Gantt chart representing the execution order.

About

a C program that simulates the Round Robin scheduling and calculates the waiting time, turnaround time for each process, and also represents the execution order using a Gantt chart.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages