img
.
barrierPost
public synchronized void barrierPost() {
This increments the counter for how many times barrierPost() has been called.
Reference:
Chapter 7.
Summary
A wide variety of more complex synchronization is possible, but probably not useful. Building
your own synchronization variables is not terribly difficult, but it can be quite subtle. Deadlocks
can always be avoided; race conditions are more problematical. Trying to recover from deadlocks
is very, very tricky. Interruptions are a real pain.
Search WWH :
Custom Search
Previous Page
Multithreaded Programming with JAVA - Topic Index
Next Page
Multithreaded Programming with JAVA - Bookmarks
Home