Basic HTML version of Foils prepared 13 July 98

Foil 73 The run Method

From Java Academy II:Advanced Java NPAC/ECS Java Academy -- February to April 98. by Tom Scavo

The java.lang.Runnable.run Method
The run() method contains the infinite loop: public void run() { while ( thread != null ) { try { Thread.sleep( 20 ); } catch ( InterruptedException e ) {} repaint(); } }
The thread goes to sleep every 20 milliseconds



© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Sat Nov 28 1998