In this chapter, you learned what threads are and why they are a useful programming construct. Next, you learned how to pause the main thread by using the sleep() command.
Following that, you learned how to create extra threads in your program. In addition, you learned how to set and get the names of the threads.
In the next section, you learned how to handle problems that are caused by multiple threads accessing the same data. You learned how to use the synchronize modifier to cause locking to occur.
Finally, you learned how to use the join() method to cause one thread to wait for another to complete.