concurrentããã±ã¼ã¸ã«åå¨ããå¤ãã®å®è£ ã¤ã³ã¹ã¿ã³ã¹ã¯ãExecutorServiceã¤ã³ã¿ãã§ã¼ã¹ãå®è£ ãã¦ãã¾ãã 7.3. ã¹ã¬ãããã¼ã« ã¹ã¬ãããã¼ã«ã¨ã¯ã¿ã¹ã¯ããã¥ã¼ã«è¿½å ãããã¼ã«ãã¦ãããã¹ã¬ããã«ãããé 次ã¿ã¹ã¯ãå¦çãã¦ãããã«ãã¹ã¬ããã®å½¢å¼ã®ä¸ã¤ã§ãã å¿ è¦ä»¥ä¸ã«ã¹ã¬ãããä½æããªãããã«ããªã½ã¼ã¹ã®ç¡é§ãªæ¶è²»ãæããã¡ãªãããããã¾ãã Executorsã¯ã©ã¹ã®ä¸ã§ãã¹ã¬ãããã¼ã«ãå¯è½ã«ãã¦ããã¯ã©ã¹ãè¿ãã¡ã½ããã«ã¤ãã¦è§£èª¬ãã¾ãã newSingleThreadExecutor() åä¸ã®ã¹ã¬ããã§éä¿¡ãããã¿ã¹ã¯ãå®è¡ããExecutorãä½æãã¾ãã Executorãçµäºããå¾ãã¿ã¹ã¯ãæ®ã£ã¦ããã°å¦çãç¶è¡ãã¾ãã import java.util.concurrent.ExecutorService; import java.util.
{{#tags}}- {{label}}
{{/tags}}