The second part of the advanced Java multi-threading tutorial. In this tutorial we look at using the volatile keyword to communicate between threads using flags. We also look at why the potential uses of volatile are somewhat limited.
After starting the video, click the maximise button to make it fullscreen so you can see the code!
Code For This Tutorial
Gracefully terminating a thread from another thread: