Priority queues Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

Definition

A

Items in the queue are assigned priority, with the highest being dequeued before low priority.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly