Created
May 17, 2012 01:10
-
-
Save embs/2715369 to your computer and use it in GitHub Desktop.
Snippet de código java que exibe o número de processadores disponíveis na máquina
This file contains 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
public class Main { | |
public static void main(String [] args) { | |
Runtime rt = Runtime.getRuntime(); | |
System.out.println(rt.availableProcessors()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment