Process Scheduler : PCBs and Queueing

When the job scheduler accepts a job, it creates the job’s PCB (Process Control Blocks) and updates it throughout the execution.
These PCBs, and not the jobs, are linked to form the queues and are used to track the respective jobs.

Note:
The PCB store all of the data about the job being processed, like it’s progress in the system. This data is needed by the operating system to manage the processing of the job.



As shown above, each queue can be seen as the linked list of PCBs:

  1. READY queue contains PCBs for ready jobs.
  2. HOLD queue contains PCBs for the jobs entering the system.
  3. WAITING queue contains PCBs for the jobs which need some resource allocation or input from the user. Depending upon their reason to be in the WAITING queue, they are linked into several queues. E.g., The PCBs waiting for some input are in a separate queue, while asking for determining the file location of a specific file is in a separate queue.
    WAITING queues are managed in a specific order according to some policies.



My Personal Notes arrow_drop_up

Tarun Singhal is a contributor at geeeksforgeeks || He is pursuing his professional BTech degree in Computer Science from Inderprastha Engineering College, Gaziabad || He has done his 12th in 2019 from CBSE board from Bharatiya Vidya Bhavans Mehta Vidyalaya, KG Marg , New Delhi || He lives in delhi

If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.




Article Tags :
Practice Tags :


Be the First to upvote.


Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.