Basic HTML version of Foils prepared 13 July 98

Foil 70 The Runnable Interface

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

Thread-related APIs for Foil 70
There are two ways to implement a thread: by 1) extending the Thread class, or 2) implementing the Runnable interface
Our examples will implement Runnable, which has one method, the run() method
The run() method, which contains the infinite loop, is called automatically by the thread's start() method...



© 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