Question
What is the need for priority queue?

Answers

In a multiuser environment, the operating system scheduler must decide which of the several processes to run only for a fixed period of time. One algorithm uses queue. Jobs are initially placed at the end of the queue. The scheduler will repeatedly take the first job on the queue, run it until either it finishes or its time limit is up and place it at the end of the queue if it does not finish. This strategy is not appropriate, because very short jobs will soon to take a long time because of the wait involved in the run.
Generally, it is important that short jobs finish as fast as possible, so these jobs should have precedence over jobs that have already been running. Further more, some jobs that are not short are still very important and should have precedence. This particular application seems to require a special kind of queue, known as priority queue. Priority queue is also called as Heap or Binary Heap.   Your Comment






Search
Can you Answer!!
  • Q Which is the only country in south east Asia that never has been under the European colonial rule?
  • Q Medical billing and coding - question and answers - interview purpose name the codes used to describe the diagnosis?
  • Q What is transistor ? What are the different types ?
  • Q Who won World Heavyweight Championship
  • Q What are the important features of a capitalist economy?
  • Q Discuss the ethical issues in clinical research.
  • Q Eliminated Planet
  • Q Salinity of sea water refers to the salt content expressed in terms of gram per kilograms. The average salt content is :
  • Q In which state Udupi Thermal power plant is located?
  • Q What is identity theft?
  • Q The external committee of Payment Bank was headed by