Class chap4.ch4_fig6
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class chap4.ch4_fig6

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----java.applet.Applet
                                   |
                                   +----chap4.ch4_fig6

public class ch4_fig6
extends Applet
implements Runnable
A malicious do-nothing applet that runs in its own thread, eating up CPU cycles because it neither sleeps nor exits.

Method Index

 o run()
The main loop for the main thread.
 o start()
Start the main thread for this applet.
 o stop()
Stop this thread.

Methods

 o start
  public void start()
Start the main thread for this applet.
Overrides:
start in class Applet
 o stop
  public void stop()
Stop this thread.
Overrides:
stop in class Applet
 o run
  public void run()
The main loop for the main thread. Displays a string in the status bar telling how many times we've been through the loop.

All Packages  Class Hierarchy  This Package  Previous  Next  Index