Appendix D. Understanding Java threads
In this appendix, we’ll discuss the basics of threads in a Java app. A thread is an independent sequential set of instructions your app runs. Operations on a given thread run concurrently with those on other threads. Any Java app today relies on having multiple threads, so it’s almost impossible not to get into investigation scenarios where you have to more deeply understand why specific threads don’t do what they should or don’t easily collaborate with other threads. That’s why you’ll find threads in several discussions throughout this book (especially chapters 7 to 9, but also here and there in the first half of the book when we discuss debugging). To properly understand these discussions, you need to ...
Get Troubleshooting Java 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.