Priority queues Flashcards
1
Q
Definition
A
Items in the queue are assigned priority, with the highest being dequeued before low priority.
2
Q
Items are removed in the usual
A
First in the queue are the first to be removed aka first in first out order.
3
Q
Give an example of when a priority queue is used
A
Within processors to assign time to applications according to their priority. Applications currently in use are prioritised over the background applications, allowing for a faster user experience.
4
Q
What is a school specific example of when a priority queue may be used
A
A priority printer queue - staff print jobs are completed before those submitted by students.