class_docstr: Process objects represent activity that is run in a separate process
  
  The class is analogous to `threading.Thread`
class_docstr_tok: ["Process","objects","represent","activity","that","is","run","in","a","separate","process","The","class","is","analogous","to","`","threading.Thread","`"]
code: def _bootstrap(self, parent_sentinel=None):
      from . import util, context
  
      global _current_process, _parent_process, _process_counter, _children
  
      try:
          if self._start_method is not None:
              context._force_start_method(self._start_method)
          _process_counter = itertools.count(1)
          _children = set()
          util._close_stdin()
          old_process = _current_process
          _current_process = self
          _parent_process = _ParentProcess(
              self._parent_name, self._parent_pid, parent_sentinel
          )
          if threading._HAVE_THREAD_NATIVE_ID:
              threading.main_thread()._set_native_id()
          try:
              util._finalizer_registry.clear()
              util._run_after_forkers()
          finally:
              # delay finalization of the old process object until after
              # _run_after_forkers() is executed
              del old_process
          util.info("child process calling self.run()")
          try:
              self.run()
              exitcode = 0
          finally:
              util._exit_function()
      except SystemExit as e:
          if e.code is None:
              exitcode = 0
          elif isinstance(e.code, int):
              exitcode = e.code
          else:
              sys.stderr.write(str(e.code) + "\n")
              exitcode = 1
      except:
          exitcode = 1
          import traceback
  
          sys.stderr.write("Process %s:\n" % self.name)
          traceback.print_exc()
      finally:
          threading._shutdown()
          util.info("process exiting with exitcode %d" % exitcode)
          util._flush_std_streams()
  
      return exitcode
  
imports: import os
  import sys
  import signal
  import itertools
  import threading
  from _weakrefset import WeakSet
label_desc: Use image node_id 21 for calling the BaseProcess obj's underlying member method code with example usage: obj._bootstrap(parent_sentinel) and returns: exitcode