Synchronization is not guaranteed to work unless both read and write operations are synchronized.