Oops! It appears that you have disabled your Javascript. In order for you to see this page as it is meant to appear, we ask that you please re-enable your Javascript!

Priority Based Process Scheduling in operating systems

Last modified on December 23rd, 2018 at 7:52 am

Priority Based Process Scheduling in operating systems

Priority Based Process Scheduling:

Priority scheduling is a preemptive algorithm so processes priority matters.

Each process has a priority number.

Process with high priority always gets the CPU on a priority basis.

Processes with the same priority are executed according to the first come first served(FCFS)scheduling algorithm.

Preferred in batch systems.

ProcessBurst TimePriority
P142nd
P223rd
P381st
P434th

 

P3P1P2P4
0                              8                             12                              14                     17

 

ProcessWaiting Time
P18
P212
P30
P414

Average Wait Time: (0+8+12+14) / 4 = 8.5

Priority Based Process Scheduling Program in C++ (C Plus Plus)

 

Prof. Fazal Rehman Shamil
Researcher, Publisher of International Journal Of Software Technology & Science ISSN: 2616-5325
Instructor, SEO Expert, Web Programmer and poet.
Feel free to contact.