answersLogoWhite

0

A round robin algorithm processes a number of tasks, steps or items one by one in a cyclic fashion like so:

1. For N items, n=0, 2, 3, ..., N-1, let nbe 0.

2. Process step (item, task) n

3. Compute n = (n+1) % N, where % is the modulo operator (the remainder of integer division)

4. Proceed to step 2.

User Avatar

Wiki User

12y ago

Still curious? Ask our experts.

Chat with our AI personalities

SteveSteve
Knowledge is a journey, you know? We'll get there.
Chat with Steve
MaxineMaxine
I respect you enough to keep it real.
Chat with Maxine
ViviVivi
Your ride-or-die bestie who's seen you through every high and low.
Chat with Vivi

Add your answer:

Earn +20 pts
Q: Write an algorithm for round robin?
Write your answer...
Submit
Still have questions?
magnify glass
imp