Chapter 8. Inter-thread Communication

IN THIS CHAPTER

When multiple threads are running inside an application, most of them will need to communicate with each other in some form. In Chapter 5, "Gracefully Stopping Threads," crude inter-thread communication was accomplished by one thread interrupting another thread. As a general guideline, the use of interrupt() should be reserved for situations where you want to interrupt a thread to signal ...

Get Java Thread Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.