Bases: simx.core.core.PyService
The process manager is the work-horse for proces oriented simulation in SimX. All process switching, scheduling and management goes via the process manager. The process manager is a service that lives on the controller entity
Returns the process object associated with a greenlet.
Returns a greenlet associated with a process
Returns process status
Creates the greenlet that will run the process and switches to the process
Adds entry for child process in process table entry of parent
kills associated greenlet object and de-activates process
Kills process and all of its sub processes. This calls proc_kill_all recursively for all its children and calls kill for leaf processes.
Creates a new process table entry for process
Removes entry for child process in process table entry of parent
Schedules a process to get executed after time given by delay The default delay is the value of local_min_delay (1 time unit)
Puts a process to sleep for time units specified by duration. If no duration is specified, process is put to sleep indefinitely till woken up by the main thread
Suspends process p1 till p2 finishes execution
Sends a message to self with given delay
Called from within the execution frame of a Process. Returns the current active process.
A helper function that returns the handle of the process manager service
Invokes ProcessManager.proc_schedule()