Java 5, introduced few concurrency primitive like compare and swap, compare and set ( together clubbed as CAS ) and some others.
All these operations, as I know, have been guaranteed to be atomic. It seems that for each of these operation, hence, there must be a single JVM byte code instruction ?
I was going through the list of byte code instructions, but did not find any for methods like CAS.
Not sure, I am correct in saying that CAS must have a single byte code instruction, or is there a different way CAS institutions are executed/implemented in java ?