public class Test {
public static void main (String [] args)
{
for (int i = 0; i < 3000; i ++)
{
Thread thread = new Thread ()
{
final Object monitor = new Object ();
public void run ()
{
synchronized (monitor)
{
try {monitor.wait( 40000); }
catch (InterruptedException ex) {}
}
}
};
thread. start ();
}
}
}
No comments:
Post a Comment