//ForkJoinPool forkJoinPool = new ForkJoinPool(Runtime.getRuntime().availableProcessors());
ForkJoinPool forkJoinPool = new ForkJoinPool(5);
int detailLinkPages = dataLinkPages(issueNo, is_not_full, userName, onsale);
TBDataLinkThread thread = new TBDataLinkThread(1,detailLinkPages,issueNo, is_not_full,userName,onsale,this);
Future<List<Map<String,String>>> result = forkJoinPool.submit(thread);
forkJoinPool.shutdown();
return result.get();
}
public List<String> tbData(List<Map<String,String>> detailLinks) throws InterruptedException, ExecutionException{
ForkJoinPool forkJoinPool = new ForkJoinPool(5);