39 static Queue *readyQueue;
40 static Queue *waitQueue;
44 void add(std::shared_ptr<Process> p);
50 std::shared_ptr<Process>
remove(std::shared_ptr<Process> p);
68 std::list<std::shared_ptr<Process> > queue;
69 std::string queueDisplay;
This class implements the ready queue and the wait queue. Those queues contain processes ready to run...
void print() const
print a summary of the queue's content
int getMaxSize() const
get the maximum size of the queues
std::string getDisplay() const
get the queue's content as a string, for command-line output
static Queue * getReadyQueue()
get a pointer to the system's ready queue
std::list< std::shared_ptr< Process > >::iterator iterator
static Queue * getWaitQueue()
get a pointer to the system's wait queue
void add(std::shared_ptr< Process > p)
add a process to the queue