Java Reference
In-Depth Information
8 . Change the TickTock class so that it actually keeps time. That is, have each tick take
one half second, and each tock take one half second. Thus, each tick-tock will take
one second. (Don't worry about the time it takes to switch tasks, etc.)
9 . Why can't you use suspend( ) , resume( ) , and stop( ) for new programs?
10 . What method defined by Thread obtains the name of a thread?
11 . What does isAlive( ) return?
12. On your own, try adding synchronization to the Queue class developed in previous
chapters so that it is safe for multithreaded use.
Search WWH ::




Custom Search