public String getBuffer() {
        return buff.toString();
    }
Val is stored somewhere. If oldVal is same as val
then you change val to newVal and return oldVal
Otherwise you do nothing but return val
@param oldValue
@param newValue
@return
src/com/interview/multithreaded/SpinLockMutex.java