Java Reference
In-Depth Information
Since concurrent access is restricted when a thread enters the synchronized block, no oth-
er methods are allowed to access the object while the current thread is in the block. Using
a synchronized block is equivalent to having a container-managed concurrency with de-
fault locks of type WRITE on all methods. This is one of the few places in Java EE when
the developer may use synchronization primitives without affecting the stability of the
container.
Search WWH ::




Custom Search