def kill(self, process): """ kills process. """ pm.get_process_mgr().proc_kill( process )
def sleep(self, duration): """ Suspends for specified amount of time. Duration has to be atleast one second """ pm.get_process_mgr().proc_sleep(self, max(1,duration))
def kill_all(self, process): """ Kills process and all its sub processes (process tree). """ pm.get_process_mgr().proc_kill_all( process )
def waiton(self, resource): """ Waits on a resource. """ pm.get_process_mgr().proc_waiton(self, resource)
def spawn(self, process): """ Spawns a process and continues executing """ pm.get_process_mgr().proc_schedule(process, parent=self)
def kill(self, process): """ kills process. """ pm.get_process_mgr().proc_kill(process)
def waitfor(self, process): """ Suspends process till the given process finishes executing. """ pm.get_process_mgr().proc_waitfor(self, process)
def kill_all(self, process): """ Kills process and all its sub processes (process tree). """ pm.get_process_mgr().proc_kill_all(process)
def sleep(self, duration): """ Suspends for specified amount of time. Duration has to be atleast one second """ pm.get_process_mgr().proc_sleep(self, max(1, duration))