//ForkJoinPool forkJoinPool = new ForkJoinPool(Runtime.getRuntime().availableProcessors());
ForkJoinPool forkJoinPool = new ForkJoinPool(5);
int linkPages = dataLinkPages(issueNo, is_not_full);
DataLinkThread thread = new DataLinkThread(1,linkPages,issueNo, is_not_full,this);
Future<List<String>> result = forkJoinPool.submit(thread);
forkJoinPool.shutdown();
return result.get();
}
public List<String> wyDatas(List<String> lottOrderIds) throws InterruptedException, ExecutionException{
ForkJoinPool forkJoinPool = new ForkJoinPool(5);