Multilevel queue
![]() | This article has multiple issues. Please help improve it or discuss these issues on the talk page. (Learn how and when to remove these messages)
No issues specified. Please specify issues, or remove this template. |
Multi-level queueing, used at least since the late 1950s/early 1960s, is a queue with a predefined number of levels. Unlike the multilevel feedback queue, items gets assigned to a particular level at insert (using some predefined algorithm), and thus cannot be moved to another level. Items get removed from the queue by removing all items from a level, and then moving to the next. If an item is added to a level above, the "fetching" restarts from there. Each level of the queue is free to use its own scheduling, thus adding greater flexibility than merely having multiple levels in a queue.
Process Scheduling
Multi-level queue [1] scheduling algorithm is used in scenarios where the processes can be classified into groups based on property like process type, CPU time, IO access, memory size, etc. One general classification of the processes is foreground processess and background processes. In multi-level queue scheduling algorithm, there will be 'n' number of queues, where 'n' is the number of groups the processes are classified into. Each queue will be assigned a priority and will have its own scheduling algorithm like RR Round-robin scheduling or FCFS FCFS (computing). For the process in a queue to execuete, all the queues of priority higher than it should be empty, meaning the process in those high priority queues should have completed its execution. Here in this scheduling algorithm the process once assigned to a queue will not move to any other queues.
Consider the following table with the arrival time, execute time and type of the process (foreground or background where foreground processes are given high priority) to understand the non pre-emptive and pre-emptive multilevel scheduling in depth with FCFS algorithm for both the queues:
Process Name | Arrival Time | Execute Time | Type |
---|---|---|---|
P0 | 0 | 5 | Foreground |
P1 | 1 | 8 | Background |
P2 | 3 | 7 | Background |
P3 | 4 | 3 | Foreground |
P4 | 5 | 3 | Foreground |
P5 | 8 | 11 | Background |
P6 | 15 | 3 | Foreground |
P7 | 25 | 4 | Foreground |

See also
- Multilevel feedback queue
- Lottery scheduling
- Scheduling (computing)
- Fair-share scheduling
- Round-robin scheduling
References
- ^ Silberschatz, Abraham; Galvin, Peter Baer; Gagne, Greg (2008). Operating system concepts (8th ed. ed.). Hoboken, N.J.: Wiley. p. 196. ISBN 0470128720.
{{cite book}}
:|edition=
has extra text (help) - ^ Silberschatz, Abraham; Galvin, Peter Baer; Gagne, Greg (2008). Operating system concepts (8th ed. ed.). Hoboken, N.J.: Wiley. p. 196. ISBN 0470128720.
{{cite book}}
:|edition=
has extra text (help)