Java Reference
In-Depth Information
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.)
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.