code: def process_global(name, val=None, setval=False):
      '''Access and set global variables for the current process.'''
      p = current_process()
      if not hasattr(p, '_pulsar_globals'):
          p._pulsar_globals = {'lock': Lock()}
      if setval:
          p._pulsar_globals[name] = val
      else:
          return p._pulsar_globals.get(namef process_global(name, val=None, setval=False):
      '''Access and set global variables for the current process.'''
      p = current_process()
      if not hasattr(p, '_pulsar_globals'):
          p._pulsar_globals = {'lock': Lock()}
      if setval:
          p._pulsar_globals[name] = val
      else:
          return p._pulsar_globals.get(name)
docs: Access and set global variables for the current process.