struct Fifo {
runqueue: SpinLock<VecDeque<Box<Thread>>>,
}Expand description
A First-in-first-out scheduler.
Fields§
§runqueue: SpinLock<VecDeque<Box<Thread>>>Trait Implementations§
Source§impl Scheduler for Fifo
impl Scheduler for Fifo
Source§fn next_to_run(&self) -> Option<Box<Thread>>
fn next_to_run(&self) -> Option<Box<Thread>>
Peek a next thread to run. Read more
Source§fn push_to_queue(&self, th: Box<Thread>)
fn push_to_queue(&self, th: Box<Thread>)
Push a thread
th into scheduling queue. Read moreSource§fn timer_tick(&self)
fn timer_tick(&self)
Called on every timer interrupt (1ms). Read more