Created
February 17, 2016 20:13
-
-
Save wakim/4b9b9907afb6b42ac778 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ExecutorService executor = Executors.newFixedThreadPool(5); | |
| for (int i = 0; i < 10; ++i) { | |
| executor.execute(new MyTask()); | |
| } | |
| executor.shutdown(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment