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