Domanda di colloquio di Qualcomm

What problems can you have with synchronization?

Risposta di colloquio

Anonimo

24 feb 2010

If you fail to properly synchronize you can read stale data on another processor, have collisions where two values get written and it isn't determinate which value will then be there. If you synchronize incorrectly you can cause deadlocks by taking locks in the wrong order, sleeping while holding a lock, or just cause bad performance by causing bottlenecks on the lock.