Qualcomm interview question

What problems can you have with synchronization?

Interview Answer

Anonymous

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.