Skip to content

Instantly share code, notes, and snippets.

@DavyLin
Last active December 31, 2015 20:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DavyLin/8039799 to your computer and use it in GitHub Desktop.
Save DavyLin/8039799 to your computer and use it in GitHub Desktop.
example for ExectorService,download the file
ExecutorService service=Executors.newFixedThreadPool(Integer.valueOf(poolThreadNum.toString()));
CountDownLatch downlatch= new CountDownLatch(Integer.valueOf(poolThreadNum.toString()));
CountDownLatch sucess_downlatch=new CountDownLatch(Integer.valueOf(poolThreadNum.toString()));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment