I have thread A and Thread B , what would happen if A reads an int value in A(itself) to check a condtion , while B is writing to the same value at the same time would an error occur ? or just desynchronization ?