answersLogoWhite

0

What are queues?

Updated: 8/9/2023
User Avatar

Wiki User

βˆ™ 16y ago

Best Answer

A queue is a first-in, first-out data structure. We use queues when one thread needs to communicate with another but they operate at different frequencies (asynchronously), such that the first thread may produce input for the second thread faster than the second thread can actually process each input. Thus the first thread will place each input on a shared queue and the second thread can deal with each in turn as and when it is ready. To avoid data races, all operations that modify the queue must be mutually exclusive, such that only one thread can gain access to these operations at any given moment. This can be implemented using a lock, such that only one thread can "own" the lock while all others must wait until the lock is released.

User Avatar

Manley Wehner

Lvl 10
βˆ™ 2y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

βˆ™ 15y ago

A line of people. British English. It can also mean a line of vehicles, for instance. There are 2 other meanings: In computers, data which is awaiting to be processed. Also, a braid of hair in the back of the head - like a pigtail - origined from the french, which was the first meaning of queue.

This answer is:
User Avatar

User Avatar

Wiki User

βˆ™ 16y ago

In Data Structure:A list of computer data constructed and maintained on a first in, first out basis.In Data Structure:A list of computer data constructed and maintained on a first in, first out basis.

This answer is:
User Avatar

User Avatar

Wiki User

βˆ™ 14y ago

according to data structure,queue follows the property of first in first out.

for example:

a line of people standing at bus stand,the person who came first will enter the bus at first then second,then third and respectively:

similarly elements stored in element will be deleted from the first and entered at last

this is called FIFO-first in first out;

This answer is:
User Avatar

User Avatar

Wiki User

βˆ™ 6y ago

A queue is a first-in, first-out data structure. We use queues when one thread needs to communicate with another but they operate at different frequencies (asynchronously), such that the first thread may produce input for the second thread faster than the second thread can actually process each input. Thus the first thread will place each input on a shared queue and the second thread can deal with each in turn as and when it is ready. To avoid data races, all operations that modify the queue must be mutually exclusive, such that only one thread can gain access to these operations at any given moment. This can be implemented using a lock, such that only one thread can "own" the lock while all others must wait until the lock is released.

This answer is:
User Avatar

User Avatar

Wiki User

βˆ™ 9y ago

The queue is a linear data structure where operations od insertion and deletion are performed at separate ends also known as front and rear. Queue is a FIFO structure that is first in first out. Whenever a new item is added to queue, rear pointer is used. and the front pointer is used when an item is deleted from the queue.

This answer is:
User Avatar

User Avatar

Wiki User

βˆ™ 13y ago

1.Queue is data structure.

2.Which is uses store Dynamic time data in specified order,

and it is based on FIFO (first in first in first out) concept.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What are queues?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What are the advantages of building ISR queues?

ISR queues


What is the plural of queue?

Queues is the plural of queue.


What is the plural form of queue?

The plural form of "queue" is "queues."


What is property of queues?

When you are registering your property and its in the queue for registration process, this is called property of queues..


Did Chinese men like queues?

yes, Chinese men liked queues as they were a sign of dignity and respect.


What are lines of waiters called?

queues


When was LΓ©gende du Scorpion Γ  Quatre Queues created?

Légende du Scorpion à Quatre Queues was created in 2001.


Where do you find queues?

You find queues wherever people are waiting to be served. You also find them in computer programming wherever objects are waiting to be processed.


How many cars appear in the UK road sign that traffic queues are likely?

The 'Queues Likely' hazard sign shows three cars.


What is the pronunciation of the word barbecue's?

Bar-be-queues


What is the pronunciation of the word barbecue?

Bar-be-queues


What has the author M L Chaudhry written?

M. L. Chaudhry has written: 'A first course in bulk queues' -- subject(s): Bulk queues