Scheduler Sim
A CPU Scheduling Algorithm Simulator in C++.
|
#include "scheduler.hpp"
Functions | |
std::ostream & | operator<< (std::ostream &os, const RRProcess &rrprocess) |
int | compareReentryTime (const std::unique_ptr< RRProcess > &a, const std::unique_ptr< RRProcess > &b) |
Compare two RRProcess objects by their reentry time. If the reentry times are equal, compare by arrival time. | |
int compareReentryTime | ( | const std::unique_ptr< RRProcess > & | a, |
const std::unique_ptr< RRProcess > & | b | ||
) |
Compare two RRProcess objects by their reentry time. If the reentry times are equal, compare by arrival time.
-1
if a < b
, 1
if a > b
, otherwise by arrival time, -2
if a < b
, 2
if a > b
, 0
if a == b
std::ostream & operator<< | ( | std::ostream & | os, |
const RRProcess & | rrprocess | ||
) |