Skip to content

Instantly share code, notes, and snippets.

@raupachz
Last active April 4, 2019 11:56
Show Gist options
  • Save raupachz/6b586e8125e6722fab367d4f9253845e to your computer and use it in GitHub Desktop.
Save raupachz/6b586e8125e6722fab367d4f9253845e to your computer and use it in GitHub Desktop.
Code for my Medium article about wether or not more memory gives you more cores
public class Cores {
public Integer handle(Object o) {
return Runtime.getRuntime().availableProcessors();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment