Code example for AtomicBoolean

Methods: compareAndSet