Example #1
0
 def kill(self, process):
     """
     kills process.
     """
     pm.get_process_mgr().proc_kill( process )
Example #2
0
 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))
Example #3
0
 def kill_all(self, process):
     """
     Kills process and all its sub processes (process tree).
     """
     pm.get_process_mgr().proc_kill_all( process )
Example #4
0
 def waiton(self, resource):
     """
     Waits on a resource.
     """
     pm.get_process_mgr().proc_waiton(self, resource)
Example #5
0
 def spawn(self, process):
     """
     Spawns a process and continues executing
     """
     pm.get_process_mgr().proc_schedule(process, parent=self)
Example #6
0
 def kill(self, process):
     """
     kills process.
     """
     pm.get_process_mgr().proc_kill(process)
Example #7
0
 def waitfor(self, process):
     """
     Suspends process till the given process finishes
     executing. 
     """
     pm.get_process_mgr().proc_waitfor(self, process)
Example #8
0
 def kill_all(self, process):
     """
     Kills process and all its sub processes (process tree).
     """
     pm.get_process_mgr().proc_kill_all(process)
Example #9
0
 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))
Example #10
0
 def spawn(self, process):
     """
     Spawns a process and continues executing
     """
     pm.get_process_mgr().proc_schedule(process, parent=self)
Example #11
0
 def waiton(self, resource):
     """
     Waits on a resource.
     """
     pm.get_process_mgr().proc_waiton(self, resource)
Example #12
0
 def waitfor(self, process):
     """
     Suspends process till the given process finishes
     executing. 
     """
     pm.get_process_mgr().proc_waitfor(self, process)