code: def finalize_processes(self):
          # type: (_MultiprocessOffload) -> None
          
          self._term_signal.value = 1
          if self._check_thread is not None:
              self._check_thread.join()
          for proc in self._procs:
              proc.join()
docs: Finalize processes
          :param _MultiprocessOffload self: this