Write a program such that the main method creates an array of 1000 double numbers and creates 10 threads to fill the array with random double numbers between 15 and 50(each thread fills one 10th of the array). When all threads have finished their work, the main program should create 5 new threads, divide the array between them, allow each thread to find the summation of elements for it's part and finally print the results on screen using console when all threads finish their work.Notes:· Math.random() returns a double random number between 0 and 1.· Use reference method to allow the communication between threads
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here