Skip to content

Instantly share code, notes, and snippets.

@r7vme
Last active January 25, 2021 21:26
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 r7vme/c6e419d0721a49ec969a5a892d0854a8 to your computer and use it in GitHub Desktop.
Save r7vme/c6e419d0721a49ec969a5a892d0854a8 to your computer and use it in GitHub Desktop.
bool is_multicore_system(void) {
return (get_nprocs_conf() > 1) ? true : false;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment