Priority Queues Overview

April 2, 2021

Course Instructor: Elliot Forbes

Hey Gophers! My name is Elliot and I'm the creator of TutorialEdge and I've been working with Go systems for roughly 5 years now.

Let’s take what we’ve learned about Queues in the previous section one step further and look at how we can implement the concept of priority into these queues.

Priority queues are similar to the queues you see at the airport where people pay extra so that they can have the luxury of sitting on a plane longer by being boarded first.

People who pay extra are given a higher priority and are boarded onto the plane first in the order in which they entered the queue. People who refused to pay for such a ridiculous upgrade are onboarded after and have to endure the insides of a plane for less time overall.