Throwing InterruptedIOException When Interrupted

Chapter 17 - The BooleanLock Utility

Java Thread Programming
Paul Hyde
  Copyright 1999 Sams Publishing

Summary
BooleanLock can be used to simplify inter-thread communication. It nicely encapsulates the error-prone complexity of the wait/notify mechanism. Another useful application of BooleanLock is to provide an interruptible alternative to control access to synchronized blocks of code. TransitionDetector can be used when the fact that the internal value has changed is important, regardless of whether it has been changed back to its original value.

Toc


Java Thread Programming
Java Thread Programming
ISBN: 0672315858
EAN: 2147483647
Year: 2005
Pages: 149
Authors: Paul Hyde

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net