In This Chapter
• Use an interface with a program
• Create threads
• Start, stop, and pause threads
• Catch errors
A computer term used often to describe the hectic pace of daily life is multitasking, which means to do more than one thing at once—such as browsing the Web while posting a message on Twitter and branch mining for diamonds at level 12 in Minecraft. A multitasking computer is one that can run more than one program at a time.
One sophisticated feature of the Java language is the ability to write programs that can multitask, which is made possible through a class of objects called threads.
In a Java program, each of the simultaneous tasks the computer handles is called a thread and the overall process ...