import java.util.Random; /** Initial implementation. This simply creates an array and computes * its average. */ public class ArrayAverage { private static int num = 2500000; private static Double arr[]; /** * Single-threaded computation */ private static void computeST() { long start = System.currentTimeMillis(); double tmp = 0; for (int i = 0; i