So, with
public class Test implements Runnable { static int i = 0; public void run() { try { Thread.sleep(1);} catch (Throwable e) { e.printStackTrace();} }Test() { new Thread(this).start(); } public static void main(String args[]) { for(;;) { i++; if (i % 1000 == 0) { System.out.println("Iteration: " + i); } new Test(); } } }
How far do you get? I get to 340... and then OOM. Why are threads so heavy?
geir --------------------------------------------------------------------- Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
