parameters: (path, data)
docstring: Write data to the file in a multi-threaded
      environment.
  
      Args:
          path (str): Path of the file to write
          data (str): Data to write on the file
  
      Raises:
          None
  
      Returns:
          None
docstring_summary: Write data to the file in a multi-threaded
      environment.
docstring_tokens: Write data to the file in a multi - threaded environment .
function: def write_data(path, data):
      """
      Write data to the file in a multi-threaded
      environment.
  
      Args:
          path (str): Path of the file to write
          data (str): Data to write on the file
  
      Raises:
          None
  
      Returns:
          None
      """
      lock.acquire()
      with open(path, "a+") as f:
          f.write(data + "\n")
          lock.release()
      lock.release()
function_tokens: def write_data ( path , data ) : lock . acquire ( ) with open ( path , "a+" ) as f : f . write ( data + "\n" ) lock . release ( ) lock . release ( )