Java Reference
In-Depth Information
12.6. Invoking alien method from within a synchronized block can
cause deadlock
Prescription:
Never cede control to an alien method from within a synchronized method or block.
References:
[EJ item 49].
12.7. Invoking
wait
outside of a
while
loop causes unpredictable
behavior
Prescription:
Never invoke
wait
outside a
while
loop.
References:
[EJ item 50].
12.8. Depending on the thread scheduler may result in erratic and
platform-dependent behavior
Prescription:
To write robust, responsive, portable multithreaded programs, ensure that few
threads are runnable at any given time.
References:
[EJ item 51].
< Day Day Up >
Search WWH ::
Custom Search