code: def clear_dead_processes(self):
          
          for pid in self.get_process_ids():
              aProcess = self.get_process(pid)
              if not aProcess.is_alive():
                  self._del_process(aProcess)
docs: Removes Process objects from the snapshot
          referring to processes no longer running.