code: def update(self, updict):
          
  
          with self.lock:
              for (key, value) in updict.items():
                  self.setitem(key, value)
docs: Updates key/value pairs in dictionary from _updict_.