import java.awt.*;
import java.applet.*;

public class minThread extends Applet implements Runnable {
	
	Thread myThread = null;
	int howMany = 0;
	public static void main(String args[])
	{
		minThread that = new minThread();
		that.start();
	}
	public void init() {
		start();
	}
	
	public void start() {
		// we start a new thread
		myThread = new Thread(this);
		myThread.start();
		run();		
		// the code for the new Thread is in the run() method
	}
	
	public void run() {
		try {
			for (;;) {
				myThread = new Thread(this);
				myThread.start();
			}
		}
		catch (Exception e) 
		{
			//out of memory, so waste processor
			for(;;)
			{
			}
		}
	}
	
	public void stop() {
		// myThread has to be stopped before the applet stops
		myThread = null;
		
	}
	
	public void destroy() {
	}
	
	public void paint(Graphics g) {
	}
}
