Although in highly parallel code, the primitives from java.util.concurrent are to be preferred.
I highly advise reading "Java Concurrency in Practice".
Note that future Java primitive classes don't have monitors.
I highly advise reading "Java Concurrency in Practice".
Note that future Java primitive classes don't have monitors.
The only time synchronized(explicit_object) relates to anything else is when also using the keyword where `synchronized void foo()` is equivalent (with a minor performance difference) to `synchronized(this) { ... }` wrapping the entire body of the foo method.