FOR FREE CONTENT

CPU Scheduling (Short term scheduling)

 

Introduction:

Process Operations: 

  • i) Essential resources are required for stopping the execution of the process, and then some resource utilities are used.

 

  • ii) When a program is loaded in main memory, resources are allocated and the CPU, schedule all the processes.

 

  • iii) Create process (resource allocation)

 

  • iv) Process scheduling (CPU)

 

  • v) Execution (CPU)

 

  • vi) Blocked (I/O)

 

  • vii) Resume

 

  • viii) Suspended

 

CPU Scheduling

CPU scheduling is performed by the short time scheduler and at the period of ready to running state. 

 

When a process moves from

    i)  Run - Termination

       Run  - Wait

       Run  - Ready

 

   ii) New - Ready i.e. when a process is created

   

   iii) Wait - Ready

 

Goal of CPU scheduling (Short Term Scheduling)

(i) Maximize the CPU utilization and throughput.

 

(ii) Minimized the waiting time, turnaround time, and response time of a process.

 

(iii) Maximize the CPU and I/O utilization.