30/09/2018, 23:39
Cần giúp về Thread trong Java
Bác nào làm giúp em bài này với :
Write a program called MaxValue.java that finds the maximum value in an array of ints
using 4 threads. Your main should be similar as the one in the above-linked SumThread
example, though you should construct your array of random numbers instead of
increasing numbers. You may assume in your threaded code that the array has at least 4
elements
http://www.cs.carleton.edu/faculty/dmusican/cs348/java_multi/SumThread.java
Bài liên quan
Mình gợi ý cách làm nhé:
Công việc của mỗi thread trong bước này là tìm ra phần tử lớn nhất trong số các phần tử mà thread đó đọc vào