PRIORITY SCHEDULING

Priority Scheduling :

  • In Priority Scheduling, Each process is assigned a priority.
  • Process with highest priority is to be executed first and so on.
  • Processes with same priority are executed on FCFS basis.
  • Priorities can be defined internally or externally.
  • Internally means priority can be decided based on memory requirements, time requirements or any other resource requirement and Externally refers to deciding priorities by external criteria, outside OS.
  • It can be preemptive or non- preemptive
  • Major problems are : Starvation and Indefinite Blocking

C SOURCE CODE :

OUTPUT :

Priority Scheduling


Leave a Reply

Your email address will not be published. Required fields are marked *