Summary

   

Java™ 2 Primer Plus
By Steven Haines, Steve Potts

Table of Contents
Chapter 18.  Programming with Threads


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.


       
    Top
     



    Java 2 Primer Plus
    Java 2 Primer Plus
    ISBN: 0672324156
    EAN: 2147483647
    Year: 2001
    Pages: 332

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net