Skip to content
Related Articles

Related Articles

Applications of Queue Data Structure

Improve Article
Save Article
  • Difficulty Level : Easy
  • Last Updated : 24 Aug, 2022
Improve Article
Save Article

Queue is used when things don’t have to be processed immediately, but have to be processed in First In First Out order. 

Useful Applications of Queue

  • When a resource is shared among multiple consumers. Examples include CPU scheduling, Disk Scheduling
  • When data is transferred asynchronously (data not necessarily received at the same rate as sent) between two processes. Examples include IO Buffers, pipes, etc. 

Applications of Queue in Operating systems:

  • Semaphores
  • FCFS ( first come first serve) scheduling, example: FIFO queue
  • Spooling in printers
  • Buffer for devices like keyboard

Applications of Queue in Networks:

Some other applications of Queue:

  • Applied as waiting lists for a single shared resource like CPU, Disk, and Printer.
  • Applied as buffers on MP3 players and portable CD players.
  • Applied on Operating system to handle the interruption.
  • Applied to add song at the end or to play from the front.
  • Applied on WhatsApp when we send messages to our friends and they don’t have an internet connection then these messages are queued on the server of WhatsApp.
My Personal Notes arrow_drop_up
Related Articles

Start Your Coding Journey Now!