Returns the number of CPUs in the system
(self)
| 39 | active_children = staticmethod(process.active_children) |
| 40 | |
| 41 | def cpu_count(self): |
| 42 | '''Returns the number of CPUs in the system''' |
| 43 | num = os.cpu_count() |
| 44 | if num is None: |
| 45 | raise NotImplementedError('cannot determine number of cpus') |
| 46 | else: |
| 47 | return num |
| 48 | |
| 49 | def Manager(self): |
| 50 | '''Returns a manager associated with a running server process |
no outgoing calls