Chapter 16. Concurrent Programming with Java Threads
Topics in This Chapter
Starting threads by using separate thread objects
Starting threads within an existing object
Solving common thread problems
Synchronizing access to shared resources
Methods in the Thread class
Exploring alternative approaches to multithreaded graphics
Implementing double buffering
Animating images
Controlling timers
The Java programming language has one of the most powerful and usable concurrent programming packages of any modern programming language: the Thread class. Threads are sometimes known as “lightweight processes”: processes that share the heap but have their own stack. Threads provide three distinct advantages.
Efficiency Performing some tasks is quicker in a multithreaded ...
Get Core Web Programming, Second Edition 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.