Class Guarded_Organizer

Class Guarded_Organizer

Placement in the overall structure

Module
syscall
Base classes
Organizer
Derived classes
None
Time of creation
Task 6
Files
guarded_organizer.h guarded_organizer.cc

Description

The Guarded_Organizer implements the system call interface to the Organizer. The methods it offers are mapped directly to the methods of the base class, except that their execution is protected in each case with the help of an object of the Secure class and that Thread objects are handled instead of Customer objects.

Public methods

void ready (Thread& that)
This method registers the process that with the scheduler.
void exit ()
This method allows a process to terminate itself.
void kill (Thread& that)
This method allows one process to terminate another (that).
void resume ()
This method can be used to trigger a process switch.

Notes

The Guarded_Organizer class replaces the Guarded_Scheduler class from Task 5.