Atomic Boolean vs SynchronizedBoolean in Java
<p>I've come across these two in some multi-threaded code and was wondering if there is if/any difference between the two.</p>

<p>I mean does the use of an AtomicBoolean, rather than a SynchronizedBoolean, make a
significant difference in performance? </p>

<p>And does it affect the correctness of the computation?</p>
