Guest User

Untitled

a guest
Aug 17th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. How can you detect a dual-core cpu on an Android device from code?
  2. public int availableProcessors()
  3.  
  4. 1.4
  5.  
  6. #include <unistd.h>
  7. int GetNumberOfProcessor()
  8. {
  9. return sysconf(_SC_NPROCESSORS_CONF);
  10. }
Add Comment
Please, Sign In to add comment