Skip to main content

Priority Scheduling

  •  Each process has its own priority.
  • Out of all available processes highest priority process gets the CPU.
  • If Tie then use FCFS.
  • Priority 
                             1. Static (doesn't change throughout the execution of process).

                            2. Dynamic (Changes after some interval of time).

  • Version 
                                  1. Non- preemptive

                                  2. Preemptive

Starvation and Aging (In Priority Scheduling)

Starvation

Indefinite Blocking
  • A Process which is ready to run can wait indefinitely because of low priority.
  • High priority processes prevent a low priority proccess from ever getting the CPU.

Aging

  • Method to ensure that process with lower priority will eventually complete thier execution.
  • By gradually increasing the priority of processes that wait in the System for a long time.

Popular posts from this blog

Operating System

What is an operating system? An operating system (OS) is the program that, after being initially loaded into the computer by a boot program, manages all of the other application programs in a computer. The application programs make use of the operating system by making requests for services through a defined application program interface ( API ). In addition, users can interact directly with the operating system through a user interface, such as a command-line interface (CLI) or a graphical UI (GUI). Why use an operating system? An operating system brings powerful benefits to computer software and software development. Without an operating system, every application would need to include its own UI, as well as the comprehensive code needed to handle all low-level functionality of the underlying computer, such as disk storage, network interfaces and so on. Considering the vast array of underlying hardware available, this would vastly bloat the size of every application and make software