577 views
0 votes
0 votes
If the ready queue is such that we have all the PCB's linked up together as a linked list then whenever the CPU needs to pick
up a process for execution then does it perform linear search on it , and if it does then it would be taking large time
since there a large no of processes executing simultaneously in the memory , so then which searching technique is generally empolyed
to pick up a process from the linked list ?

1 Answer

0 votes
0 votes
You had told "ready queue" in question.

A queue can be implemented using a linkedlist, but always allows constant time deletion- and this is used to pick up a process for execution. There is no need to do a search here. Whatever criteria is needed to pick up a process can be used to design the "priority" of the queue and it can be made a priority queue.

Related questions

0 votes
0 votes
1 answer
3
Anmol1512 asked Mar 14, 2022
637 views
does the job scheduler only select the process or bring the process from new state to ready state
0 votes
0 votes
3 answers
4
PEKKA asked Nov 7, 2016
4,116 views
Explain with an example how to remove ambiguity from a Grammer .