Skip to content

Instantly share code, notes, and snippets.

@Godin
Created June 13, 2012 11:42
Show Gist options
  • Save Godin/2923588 to your computer and use it in GitHub Desktop.
Save Godin/2923588 to your computer and use it in GitHub Desktop.
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
public class Main {
public static void main(String[] args) {
ExecutorService executor = Executors.newFixedThreadPool(2);
executor.execute(new Runnable() {
public void run() {
System.out.println("Done");
}
});
System.out.println(executor);
System.exit(0);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment