/*
 * Written by Doug Lea with assistance from members of JCP JSR-166
 * Expert Group and released to the public domain, as explained at
 * http://creativecommons.org/licenses/publicdomain
 */

import edu.emory.mathcs.backport.java.util.concurrent.atomic.*;

class NoopMutex {
    public static void main(String[] args) throws Exception {
        AtomicInteger lock = new AtomicInteger();
        for (int i = 100000000; i > 0; --i) {
            lock.compareAndSet(0,1);
            lock.set(0);
        }
    }
}
