I am going to write multi-thread process speed calculator that calculates something and gets the result for windows phone and android however first of all before i create threads i have to know how many cpus' does phone have.Can anyone know how can i get the number of the cpus or does anyone can give me and advice ?
Asked
Active
Viewed 135 times
0
-
Possible duplicate of http://stackoverflow.com/questions/7593829/how-to-get-the-processor-number-on-android or http://stackoverflow.com/q/7962155/435706 and http://stackoverflow.com/questions/11400045/how-to-get-the-number-of-processors-on-windows-phone please search before you ask – Shereef Marzouk Jun 25 '14 at 06:12
1 Answers
1
For getting CPU count in android use this:
android_getCpuCount() from cpufeatures NDK library works correctly.

Badrul
- 1,582
- 4
- 16
- 27