Chapter 2. Thread Creation and Management
In this chapter, we cover all the basics about threads: what a thread
is, how threads are created, and some details about the lifecycle of
a thread. If you're new to threading, this chapter
gives you all the information you need to create some basic threads.
Be aware, however, that we take some shortcuts with our examples in
this chapter: it's impossible to write a good
threaded program without taking into account the data synchronization
issues that we discuss in Chapter 3. This
chapter gets you started on understanding how threads work; coupled
with the next chapter, you'll have the ability to
start using threads in your own Java applications.
|