In a queue, insertion occurs at the rear of the list, and deletion occurs at the front of the list. This is called as “first-in-first-out” (FIFO) method.
Printing using the computer: When several documents are to be printed, the printer prints the documents in FIFO method only. For this, i.e. to keep track of documents in FIFO order, a queue is used.
Reservation system: Reservations such as air ticket or railway reservation systems, use queue to issue reservations on first come first serve basis i.e. FIFO method.
Computer networks: Computer networks use queues to give access from server to several clients, who are connected to the server in FIFO method.
Railroad car rearrangement, wire routing, machine shop simulation
The other applications of queue include Railroad car rearrangement, wire routing (path finding), and machine shop simulation.
3 comments:
I like This Side nd gives 10/10.
Explained well...
Explained well...
Post a Comment