answersLogoWhite

0


Best Answer

Priority queues can be found in operating systems for load-balancing and interrupt handling, network servers for bandwidth management, compression algorithms (such as Huffman encoding), Dijkstra's algorithm, Prim's algorithm and artificial intelligence systems.

User Avatar

Keshawn Ziemann

Lvl 10
1y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

14y ago

The people waiting to get food would be your queue. The first person in line is the first one served. First in, first out

1.Print Server:

maintains a queue of print jobs

2.Disk Driver:

maintains a queue od disk input/output requests

3.Schedular(e.g, in operating system):

maintains a queue of processes awaiting a slice of machine time.

The major application of queue is in the operating system and in networks. All the processes that are submitted to your processor or thr CPU are first taken in a queue which are then processed as pewr various algorithms.

Similarly on a network if a number of users want to access a resource their request is taken in a queue and then processed.

Queue application In C Posted by apple9966 on 12 Aug 2008 at 2:09 AM

In general all fast food chains like McDonalds, Subway, and other drive-ins follow queue model to take the order and serve. When a user enters the desk, his order is pushed into the system. The stewards, cook/arrange the order based on the queue inside kitchen

. Once the order is prepared, it will dequeued of kitchen queue.

1. Let us consider a queue of 10. More than 10 display queue is full message.

2. Customer approach different desks/counters at same time. In each counter they are asked for the order. Entire order details are stored in a data structure and pushed/enqueued into the kitchen queue.

3. Every order is at service desk. Amount of their order is mentioned at the end. For this we need list of items and their respective prices are stored in item list. At the end of the order the total amount is calculated. At payment, let us assume same order is reflected in the kitchen. This is one push operation.

4. The values inside queue elements would be the order and the quantity.

5. Once the order is prepared and delivered a pop/dequeue operation removes the front order and stores them in a file with a transaction number.

6. Until the front order is complete. Order is not popped out/dequeued. When the queue of 10 is not served that means the queue is full. The desks have to wait

7. Simulate desks scenarios using a random number mod 3/4 operation representing each desk. And these orders are placed in the queue based on the order generated by random number.

This answer is:
User Avatar

User Avatar

Wiki User

11y ago

The characteristics of a circular queue is a finite size (finite number of elements), but a guarantee there there's always room for one more (because the oldest element gets kicked out if necessary).

Applications for circular queues are all those where this behavior matches the model. For example, some network protocols use finite-sized linear queues which cause the loss of the newest event when full (no room left), while others prefer dealing with congestion though circular queues, accepting the loss of the oldest event when the queue is full.

This answer is:
User Avatar

User Avatar

Wiki User

11y ago

Queue is a FIFO(First In First Out) data structure.

The main applications of queue data structure are conversion of expressions from infix to postfix and from infix to prefix,evaluation of postfix expressions.

This answer is:
User Avatar

User Avatar

Wiki User

7y ago

Queues are typically used to provide a buffer for incoming data, particularly in multi-threaded applications where data arrives from one thread quicker than another thread can process that data.

This answer is:
User Avatar

User Avatar

Wiki User

6y ago

Priority queues can be found in operating systems for load-balancing and interrupt handling, network servers for bandwidth management, compression algorithms (such as Huffman encoding), Dijkstra's algorithm, Prim's algorithm and artificial intelligence systems.

This answer is:
User Avatar

User Avatar

Wiki User

11y ago

A traffic light is an example of a circular queue. It is constantly going.

This answer is:
User Avatar

User Avatar

Wiki User

12y ago

Queues are used in printers softwares for printing large number of pages at a great speed.

This answer is:
User Avatar

User Avatar

Wiki User

11y ago

The stacks and queues are used for the input of continuous data in the application.

The stacks are used during the run-time for application sequence initialization.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What are the applications of circular queue?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

What is the difference between linear and circular queue?

What is the difference between linear and circular queue? In: http://wiki.answers.com/Q/FAQ/2545-37 [Edit categories]The Queue by Default is Linear, it would be termed as Circular if the Last Element of the Queue pointsto the first element of the List


How compiler differentiate between linear queue and circular queue?

It doesn't.


Difference between simple queue and circular queue?

Simple queue is a linear queue having front & rear var to insert & delete elements from the list.But there is a boundary that we have to insert at rear & have delete from front.For this reason instead of having space in the queue if there is a single element in the rear,the queue is full.the other space is wasted.To utilize space properly,circular queue is derived.In this queue the elements are inserted in circular manner.So that no space is wasted at all.


Circular queue in linear data structure?

The queue is a linear data structure where operations of 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. A circular queue is similar to the normal queue with the difference that queue is circular queue ; that is pointer rear can point to beginning of the queue when it reaches at the end of the queue. Advantage of this type of queue is that empty location let due to deletion of elements using front pointer can again be filled using rear pointer.


What is the definition of circular queue?

A queue is simply a FIFO i.e first in first out. In queue we've front and rear. Front is the initial or first location of the queue whereas rear indicates the last entry location in the queue. In the circular queue the location of front and rear will be the same IF the total space of the circular queue is utilized. Each element has its position no. for insertion , if we set the 5th element as the front element then after every insertion the ptr indicates the 5th element as front. in deletion, the fifth element is deleted every time it is the rear position. after deletion of an element the queue rotates and every time the rear indicates the 5th element of the circular queue. and every time the 5th location element is deleted.

Related questions

Circular queue program?

For the Complete Implementation of Circular Queue Check out www.codeuniverse.tk


Which queue most efficient queue using array?

circular queue


Difference between circular queue and linear queue?

In circular queue the memory of the deleted process can be used by some other new process..


What is circular queue operations circular queue?

A circular queue is similar to the normal queue with the difference that queue is circular queue ; that is pointer rear can point to beginning of the queue when it reaches at the end of the queue. Advantage of this type of queue is that empty location let due to deletion of elements using front pointer can again be filled using rear pointer. There are 2 conditions for queue full if queue is implemented using arrays. First condition is Front = 1 and Rear = N Second condition is Front = Rear + 1


What is the difference between linear and circular queue?

What is the difference between linear and circular queue? In: http://wiki.answers.com/Q/FAQ/2545-37 [Edit categories]The Queue by Default is Linear, it would be termed as Circular if the Last Element of the Queue pointsto the first element of the List


Define is circular queue with example?

A circular queue uses the same conventions as that of linear queue. Using Front will always point one position counterclockwise from the first element in the queue.


How compiler differentiate between linear queue and circular queue?

It doesn't.


What is the difference between a priority queue and a circular queue?

A circular queue is similar to the normal queue with the difference that queue is circular queue ; that is pointer rear can point to beginning of the queue when it reaches at the end of the queue. A priority queue is a queue in which each element is inserted or deleted on the basis of their priority. A higher priority element is added first before any lower priority element. If in case priority of two element is same then they are added to the queue on FCFS basis (first come first serve).


What is the need of circular queue in data structures?

Circular queue is a linear data structure that follows the First In First Out principle. A re-buffering problem often occurs for each dequeue operation in a standard queue data structure. This is solved by using a circular queue which joins the front and rear ends of a queue.


List out atleast 5 rela life instances where queue and circular queue operations are being used?

1. List out atleast 5 rela life instances where queue and circular queue operations are being used.


What is circular queues Explain in detail along with example?

circular queue


What are types of Queue?

Queue is a data structure which is based on FIFO that is first in first out. Following are the types of queue: Linear queue Circular queue Priority queue Double ended queue ( or deque )