(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
Write data to the file in a multi-threaded
    environment.
Write data to the file in a multi - threaded environment .
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()
def write_data ( path , data ) : lock . acquire ( ) with open ( path , "a+" ) as f : f . write ( data + "\n" ) lock . release ( ) lock . release ( )