how does queue work…
 
Notifications
Clear all

how does queue work ?

2 Posts
3 Users
0 Likes
358 Views
0
Topic starter

explain

2 Answers
0

A queue is a useful data structure in programming. It is similar to the ticket queue outside a cinema hall, where the first person entering the queue is the first person who gets the ticket. Queue follows the First In First Out (FIFO) rule – the item that goes in first is the item that comes out first.

0

A queue is a data structure that works like a line of people waiting for something. In computer science, a queue is a collection of items or elements, where new items are added to the back of the queue and removed from the front. This means that the first item added to the queue is the first item to be removed from the queue. This behavior is known as “first-in, first-out” or FIFO. Queues are often used in computer programming for tasks such as processing messages, handling job requests, and managing network traffic.

Share: