answersLogoWhite

0


Best Answer

The advantage of multilevel queue scheduling is that it covers all disadvantage of all others scheduling......................

The main disadvantage of multilevel queue scheduling is that it is very difficult to understand and it takes a lot of time........

By waqar ahmad awan (0333-9996376)

User Avatar

Wiki User

βˆ™ 11y ago
This answer is:
User Avatar
More answers
User Avatar

Ihtisham Uddin

Lvl 2
βˆ™ 3y ago

Queues have the advantages of being able to handle multiple data types and they are both flexible and flexibility and fast. Moreover, queues can be of potentially infinite length compared with the use of fixed-length arrays

A major disadvantage of a classical queue is that a new element can only be inserted when all of the elements are deleted from the queue.

example

Now, if the first three members are DE-queued from the front (left hand side) of the queue, we get:

Where the queue remains full but we can not insert a new element because the back of the queue (right hand side) remains as it was before. This is the major limitation of a classical queue, i.e. even if there is space available at the front of the queue we can not use it.

So to overcome the problem above, we can use a circular queue. With reference to , this can be defined as a β€œlinear data structure in which the operations are performed based on FIFO (First In First Out) principle and the last position is connected back to the first position to make a circle.” We can represent this circular queue as:

If a queue is considered circular, when a DE-queue operation occurs, re-pointing the head of the queue to the next element is a simple assignment. This also avoids extensive re-buffering when all the elements would otherwise move one to the left, so to speak, after a DE-queue occurs.

This answer is:
User Avatar

User Avatar

Wiki User

βˆ™ 13y ago

A queue is a first in, first out system meaning that it keeps its order. This can be an advantage, or disadvantage depending on your needs.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What are the Advantages and disadvantages of a queue?
Write your answer...
Submit
Still have questions?
magnify glass
imp