Exercises

   

Java™ 2 Primer Plus
By Steven Haines, Steve Potts

Table of Contents
Chapter 18.  Programming with Threads


1:

Create a program that prints the names of all your immediate family from a thread.

2:

Modify the program to use the Runnable interface instead of the Thread class.

3:

Create a program that calls the same synchronized method from three different threads.

4:

Create a program with five different threads that execute sequentially.


       
    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