Queue Notes
Queue Notes
Queue
1.Whatisqueue?
A Queue is definedas a lineardata structure that is open at both ends and the operations
are performed in First in First out (FIFO) order.
Queue is also an abstract data type or a linear data structure, just like stack data
structure, in which the first element is insertedfrom one end called the REAR(also
called tail), andthe removal of existing element takesplace from the other endcalled
as FRONT(also called head).
2.Listanytwoapplicationsofqueue?
Appliedaswaiting lists for a single shared resource like CPU,Disk, and Printer.
Appliedasbuffers on MP3 playersand portable CD players.
Appliedon Operating system to handle the interruption.
Appliedto adda song at the endor to play from the front.