|
Scheduler
|
This class implements the ready queue and the wait queue. Those queues contain processes ready to run and waiting for i/o respectively. More...
#include <queue.h>
Public Types | |
| typedef std::list< std::shared_ptr< Process > >::iterator | iterator |
Public Member Functions | |
| void | add (std::shared_ptr< Process > p) |
| add a process to the queue More... | |
| std::shared_ptr< Process > | remove (std::shared_ptr< Process > p) |
| removes the process from the queue. Note: this does not delete the process. Just remove it from queue. More... | |
| iterator | begin () |
| iterator | end () |
| size_t | size () const |
| bool | isEmpty () const |
| void | print () const |
| print a summary of the queue's content More... | |
| std::string | getDisplay () const |
| get the queue's content as a string, for command-line output More... | |
| int | getMaxSize () const |
| get the maximum size of the queues More... | |
Static Public Member Functions | |
| static Queue * | getReadyQueue () |
| get a pointer to the system's ready queue More... | |
| static Queue * | getWaitQueue () |
| get a pointer to the system's wait queue More... | |
This class implements the ready queue and the wait queue. Those queues contain processes ready to run and waiting for i/o respectively.
| typedef std::list<std::shared_ptr<Process> >::iterator Scheduler::Queue::iterator |
| void Queue::add | ( | std::shared_ptr< Process > | p | ) |
| Queue::iterator Queue::begin | ( | ) |
| Queue::iterator Queue::end | ( | ) |
| std::string Queue::getDisplay | ( | ) | const |
| int Queue::getMaxSize | ( | ) | const |
|
static |
|
static |
| void Queue::print | ( | ) | const |
1.8.11