Description: Bonus program. Write a program, first create a random integer greater than 10 n, then n a random number generated and stored in the array, and then add this number n, and calculate the number n and s1, and calculate the time required to seek s1 t1. then let the program creates two threads to add concurrent computing. Before the calculation of one half the number of threads and s21, after the latter half of the number of computing threads and s22, then s21 and s22 add two numbers are and s2, calculated using two-thread computing the sum of the time t2 . Compare s1 and s2, as well as the size of t1 and t2
To Search:
File list (Check if you may need any files):
ex09\addProgram.class
....\addProgram.java
....\InitArray.class
....\Sum.class
ex09