Kumar-laxmi / Algorithms

A Repository for algorithms in C, C++, Python and Java
Apache License 2.0
325 stars 367 forks source link

Add SJN and RR algorithms in Job scheduling. #1750

Closed shivam0277 closed 8 months ago

shivam0277 commented 1 year ago

Shortest Job Next (SJN) Scheduling: Jobs with the shortest execution time are given priority. It aims to minimize the average waiting time and turnaround time for jobs.

Round Robin (RR) Scheduling: Each job is assigned a fixed time slice (time quantum), and jobs are executed in a circular manner. If a job does not complete within its time slice, it is moved to the end of the queue to give other jobs a chance.

github-actions[bot] commented 8 months ago

Stale issue message