Tom Kelliher, CS 245
Oct. 6, 2004
Deliverables due today.
Next deliverables due: User interface mock-ups, collaboration diagrams. Due 10/13. Motivation. Don't forget traceability on collaboration diagrams.
Complete the lab.
Class design.
Threads II: Synchronization.
class Foo extends applet { Bar b = new Bar(); public void init() { ... b.start(); // Get the thread going. ... } } class Bar extends Thread { ... public void run() { // This is where the thread "lives." }Other thread methods:
sleep()
start()
stop()
--- deprecated.