December 1999
Intermediate to advanced
816 pages
20h 27m
English
One of Java's design goals was to be multithreaded. Whenever you run a Java program, there are multiple threads executing. Java provides the capability for you to easily add additional threads to your program. Adding threads is much simpler in Java than in languages like C or C++. This chapter will show you how to create and use threads to your advantage.
In Java, as in other languages, a thread is an execution context or subprocess. The Thread class is provided to run multiple threads in your program. You can use multiple threads for many tasks, such as printing a long document while the user continues to use the GUI. To assist you in using threads, this chapter covers
Thread states
Creating
Read now
Unlock full access