* tests/regression/jasmin/Makefile.am (build): Added cup.jar to
[cacao.git] / tests / gc / ThreadStress.java
1 public class ThreadStress extends Thread {
2         public static final int N=10;
3
4         public void run() {
5                 while (true) {
6                         System.gc();
7                 }
8         }
9
10         public static void main(String args[]) {
11                 ThreadStress t = null;
12
13                 System.out.println("Creating and starting threads ...");
14                 for (int i=0; i<N; i++) {
15                         t = new ThreadStress();
16                         t.start();
17                 }
18
19                 System.out.println("Finished.");
20         }
21 }