Computer Science, asked by starmogh28501, 1 year ago

Which data structure is best suited for ready queue of round robin algorithm?

Answers

Answered by nischay1122pdx5j6
0
Round Robin Scheduling Algorithm

1. The queue structure in ready queue is of First In First Out (FIFO) type.

2. A fixed time is allotted to every process that arrives in the queue. This fixed time is known as time slice or time quantum.

3. The first process that arrives is selected and sent to the processor for execution. If it is not able to complete its execution within the time quantum provided, then an interrupt is generated using an automated timer.

4. The process is then stopped and is sent back at the end of the queue. However, the state is saved and context is thereby stored in memory. This helps the process to resume from the point where it was interrupted.

5. The scheduler selects another process from the ready queue and dispatches it to the processor for its execution. It is executed until the time Quantum does not exceed.

6. The same steps are repeated until all the process are finished.

The round robin algorithm is simple and the overhead in decision making is very low. It is the best scheduling algorithm for achieving better and evenly distributed response time.

Answered by StaceeLichtenstein
0

Circular queue is the correct answer to the given question

Explanation:

  • The circular queue is the data structure which follows the FIFO order i.e first in first out .In the circular queue the address of last element is connected to the first position of element also the circular queue is the best way for implementing the round robin algorithm.
  • The main advantage of circular queue is that there is proper utilization of memory takes place in them.
  • There are many number of data will be added in the circular queue.

Learn More :

  • brainly.in/question/1620380
Similar questions