What are practical applications of Queues?

Muhammad Maqsoodur Rehman picture Muhammad Maqsoodur Rehman · Mar 6, 2010 · Viewed 76k times · Source

What are practical applications of Queues in Computer Science. Where do we use them and why? I heard that we use them in Video Games and Computer Simulation programs, is that true? Why? Apart from these two areas what are other practical applications of Queues as a data structure?

Answer

Bhavya picture Bhavya · Nov 1, 2012

Stacks are used for the undo buttons in various softwares. The recent most changes are pushed into the stack. Even the back button on the browser works with the help of the stack where all the recently visited web pages are pushed into the stack.

Queues are used in case of printers or uploading images. Where the first one to be entered is the first to be processed.