This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
This illustrates the fact that calling stop() on a Thread | |
won't stop the Thread if it's waiting on a monitor. | |
The output I get is: | |
Thread t1 acquiring lock | |
Thread t1 has lock | |
Thread t2 acquiring lock | |
...waits forever... |