@@ -0,0 +1,474 @@
+package extthread;%0A%0Aimport java.util.Random;%0A%0Apublic class MyThread2 extends Thread %7B%0A%09@Override%0A%09public void run() %7B%0A%09%09long beginTime = System.currentTimeMillis();%0A%09%09long addResult = 0;%0A%09%09for (int i = 0; i %3C 10; i++) %7B%0A%09%09%09for (int j = 0; j %3C 50000; j++) %7B%0A%09%09%09%09Random random = new Random();%0A%09%09%09%09random.nextInt();%0A%09%09%09%09addResult = addResult + j;%0A%0A%09%09%09%7D%0A%0A%09%09%7D%0A%09%09long endTime = System.currentTimeMillis();%0A%09%09System.out.println(%22thread 2 use time= %22 + (endTime - beginTime));%0A%09%7D%0A%7D%0A

Create MyThread2.java