Small round-robin scheduler implementation.