This week's book giveaway is in the General Computing forum. We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line! See this thread for details.
The main thread starts the thread t, and then waits for t to finish (t.join()). Thread t will do its thing by running the run() method, printing 0. Thread t finishes and the main thread continues after the t.join(). The main thread then calls t.run() producing the second 0, and then the main thread calls t.demo() producing the 1. -Barry [ August 28, 2002: Message edited by: Barry Gaunt ]