title: Java concurrency primitive - compare and swap
body: <p>Java 5, introduced few concurrency primitive like compare and swap, compare and set ( together clubbed as CAS ) and some others.<br/>
  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 ?</p>
  
  <p>I was going through the list of byte code instructions, but did not find any for methods like CAS.</p>
  
  <p>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 ?</p>