answersLogoWhite

0

Write an algorithm for round robin?

Updated: 10/3/2022
User Avatar

Wiki User

11y ago

Best Answer

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

11y ago
This answer is:
User Avatar

Add your answer:

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

What is the Round Robin algorithm?

It's an algorithm that is used for CPU schedulers.


Which CPU shchedule algorithm is used by Windows 8?

Round Robin


the performance of round robin algorithm depends on?

The size of the Time Quantum


the performance of round robin algorithm depends heavily on?

The size of the Time Quantum


Round robin scheduling program in java?

Round robin is the scheduling algorithm that is utilized by the CPU, or central processing unit, during the execution of the process. It is specifically designed for time sharing systems.


Why round robin algorithm not applicable for distributed environment?

distributed system doesn't have any global clock time. It uses some special schedule technique such as lampart's cycle and other algorithm.


What is algorithm to write algorithm to the program to access a pointer variable in structure?

Here is the algorithm of the algorithm to write an algorithm to access a pointer in a variable. Algorithmically.name_of_the_structure dot name_of_the _field,eg:mystruct.pointerfield


Write an algorithm to find the root of quadratic equation?

Write an algorithm to find the root of quadratic equation


Why was Robin Hood at the round table?

Robin Hood wasn't at the round table


A Write the algorithm to concatenate two given strings?

a write the algorithm to concatenate two given string


What CPU scheduling algorithm is used Windows NT?

Windows XP uses a quantum-based, preemptive priority scheduling algorithm


How does one write an algorithm that rounds off a decimal point to the nearest integer?

double round (double x) return (int) x + 0.5;