Ashish Patel: Notes

Atom feed

Recently added: Conventional commits, Cli, Shortcuts, Subscriptions, Topic

Round Robin

The Round Robin scheduling algorithm is a simple and efficient method used in operating systems to manage processes. It allocates a fixed time slice or "quantum" to each process in the queue, cycling through them repeatedly.

How It Works:

  1. Processes Queue: All processes are placed in a queue.
  2. Time Quantum: Each process is given a fixed amount of time (quantum) to execute.
  3. Cycle Through: The scheduler cycles through the queue, giving each process its turn.
  4. Preemption: If a process doesn't finish within its time slice, it is moved to the back of the queue.

Example:

Suppose we have three processes, P1, P2, and P3, with a time quantum of 3 units.

Advantages:

Disadvantages:

This approach ensures that all processes are treated equally and prevents any single process from monopolizing the CPU.

Created 2024-07-25T12:10:20+01:00, updated 2024-10-27T19:38:33+00:00 · History · Edit