[concurrency-interest] CAS and synchronized

Mohan Radhakrishnan radhakrishnan.mohan at gmail.com
Thu Dec 8 19:33:52 EST 2011

          I have read that CAS uses the processor's instruction set to
update memory values. Why is this more efficient than using
synchronized ? What is the locking overhead when we use synchronized ?

Seems it is a basic doubt again.


More information about the Concurrency-interest mailing list