Last active
April 13, 2022 15:50
-
-
Save Morfly/b0a06589e0fa79687251edb0c39411ae to your computer and use it in GitHub Desktop.
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
// C | |
#include <unistd.h> | |
long numCores = sysconf(_SC_NPROCESSORS_CONF); |
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
// Kotlin | |
import android.system.Os | |
import android.system.OsConstants | |
val numCores = Os.sysconf(OsConstants._SC_NPROCESSORS_CONF) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment