Javaã§è¤éãªã¹ã¬ããå¦ç Javaã«ã¯å½åããThreadã¯ã©ã¹ãããããã¤ã³ã¹ã¿ã³ã¹çæãéãã¦å¾®å¦ã ã£ãã JDK5ããã¯Executorãå°å ¥ããã¦ãWorkerThreadçãªãã¨ã¯ããããããªã£ãããLockç³»ã®ã¯ã©ã¹ãå¢ãã¦ä¾¿å©ã«ãªã£ããã¾ããFutureã®å°å ¥ã«ããå¦ççµæãåãåãã®ã楽ã«ãªã£ãã ã¨ã¯ãããFuture.get()ãå¼ã¶ã¨å¼ã³åºãThreadããããã¯ãããããããã¾ãå¥Threadã§ãã£ã¦ãã¨ããããã«ãªããæ¬è³ªçãããªãå¦çãæ¸ããªãã¨ãããªãã£ãã®ã確ãã Java8ããã¯CompletableFutureãå°å ¥ãããããè¤éãªThreadå¦çãè¡ããã¨ãã§ããããã«ãªã£ããããªã®ã§ã調æ»ãããã åæç¥è åããJava8ã§å°å ¥ãããFunction, Consumer, Supplierãç解ãã¦ããªãã¨ããåãããªãã¨æãã以ä¸ã«è¨äºæ¸ãã
{{#tags}}- {{label}}
{{/tags}}