If two threads access the same data, their access needs to be synchronized with mutexes or similar mechanisms.