A
A
Alexander Varakosov2015-10-19 09:36:42
Java
Alexander Varakosov, 2015-10-19 09:36:42

The problem with determining the number of cores in an android device, who faced it?

One project uses the number of processor cores to determine the number of threads.
This is how I do it: I
Runtime.getRuntime().availableProcessors()
recently discovered that on some devices this returns one. For example, on ZenPhone and some Lenovo.
Apparently, this is due to the Intel processor.
Who faced? What to do with these?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
G
GavriKos, 2015-10-19
@GavriKos

What to do? Google: stackoverflow.com/questions/10133570/availableproc...

A
Alexander, 2015-10-19
@komjaga

1. Make the maximum number of threads.
2. Determine the optimal number of threads algorithmically, the ratio of performance per 10 threads to 1 thread

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question