Skip to content

spirinvladimir/round-robin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Round-robin (RR) algorithm

Usage:

  1. Add package to your dependecies by:
npm i spirinvladimir/round-robin
  1. At your project:
const create_rr = require('round-robin-algorithm')
const rr = create_rr()

rr.add('red')
rr.add('green')
rr.add('blue')

console.log(rr.get(), rr.get(), rr.get(), rr.get())
// red green blue red

rr.del('green')

console.log(rr.get(), rr.get(), rr.get(), rr.get())
// red blue red blue

About

Round-robin (RR) is one of the algorithms employed by process and network schedulers in computing

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published