Java7åºããã Fork/Joinè¦ãã¨ãã«ããExecutors(ThreadPoolExecutor)ã¨FutureTaskã§åºæ¥ãªããï¼ ã£ã¦æã£ãã®ã§ã¡ãã£ã¨å®é¨ãã¦ã¿ãã ãµã³ãã«ã®å®è£ ã®å 容㯠Taskãå¼ã°ããã¨å ¥åãããæ°å¤åæ°åãhogeæååãã¤ãªãã¾ãã åæ°ãå¤ãã¨ãã¯æ°å¤ãååã«ãã¦2ã¤ã®ã¿ã¹ã¯ã«åãã¦ãå®è¡ãã¾ãã 10ãæå®ããã¨hogeã10è¡å表示ããã¾ãã ã¾ãã¯ãä»åã®Fork/Joinãã¼ã¸ã§ã³ã public class HogeForkJoin { static AtomicInteger callCount = new AtomicInteger(); public static void main(String[] args) throws Exception { long start = System.currentTimeMillis
{{#tags}}- {{label}}
{{/tags}}