|
size=2>Caution size=2> size=2> color=#000000 face="Courier New" size=2> face=Arial size=2> size=2> color=#000000 face="I Frutiger Italic" size=2> color=#000000 face=Arial size=2> face="Courier New" size=2> size=2> color=#008000 face=Arial size=2> |
|
size=2>Keep in mind that this stopping feature requires that a blocked statement respond to an interrupt. This is not always the case. For example, the size=2>read() method on an size=2>InputStream blocks until a new byte is available, the end of stream is reached, or an size=2>IOException is thrown. It does size=2>not throw an size=2>InterruptedException size=2> if the blocked thread is interrupted! A technique for dealing with this situation is offered in color=#008000 face=Arial size=2>Chapter 15, “Breaking Out of a Blocked I/O State.” |
|
No comments:
Post a Comment