能力强的人善于解决问题,有智慧的人善于绕过问题。 区别很微妙,小心谨慎做后者。
全部博文(399)
发布时间:2015-05-01 20:10:48
public class FileSize { private final static ForkJoinPool forkJoinPool = new ForkJoinPool(); private static class FileSizeFinder extends RecursiveTask<Long> { final File file; public FileSizeFinder(final File theFile) { file = theFile;} .........【阅读全文】
发布时间:2015-05-01 19:37:53
1) Determining the Number of Threads 最少最少: Runtime.getRuntime().availableProcessors(); Number of threads = (Number of Available Cores) / (1 - Blocking Coefficient)2) Determining the Number of Par.........【阅读全文】
发布时间:2015-05-01 17:04:32
public class MyExecutor extends ThreadPoolExecutor { private ConcurrentHashMap......【阅读全文】