2018-06-01ãã1ã¶æéã®è¨äºä¸è¦§
Streamã® parallel ã¡ã½ãããå¼ã¶ã¨ã¹ããªã¼ã ã®å¦çã並åã«å®è¡ã§ãã¾ãããããã¯å é¨çã«ã¯ååç´¹ä»ããForkJoinPoolã使ããã¦ãã¾ããForkJoinPoolã¯å é¨ã§common poolã¨å¼ã°ããå ±éãã¼ã«ãæã£ã¦ãããæ示çã«Poolãæå®ããªã ForkJoinTask#invoâ¦
ForkJoinPoolã¯Java 7ããå°å ¥ãããæ°ããExecutorã®ãã¬ã¼ã ã¯ã¼ã¯ã§ãã æ§æ¥ã®Executorã¨éãã®ã¯ãã¿ã¹ã¯ã®ã¹ã±ã¸ã¥ã¼ã«ã®ã¢ã«ã´ãªãºã ã¨ãã¦ãwork-stealingãæ¡ç¨ãã¦ãããã¨ã§ããããã¯å帰å¦çãã¿ã¹ã¯ã®ä¸ã§æ´ã«ç´°ããªåã¿ã¹ã¯ãçæãããããâ¦