0

how many cores in android devices although there are allot of manufacturers and how many threads could i use to maximize my performance, In contrast of using only the main thread ?

EDIT : :

The number of cores answer is answered by Nambari , but how many threads to use for best performance is not yet aswered

1 Answers1

1

One approach you could follow might be:

First find out number of cores on the device, this answer might help you on that, then follow best practices for thread pool (In my opinion coreCount+1, some people might differ on this approach).

Other solutions might exists based on what you are trying to achieve.

Community
  • 1
  • 1
kosa
  • 65,990
  • 13
  • 130
  • 167
  • ok i will see it but a question .. the core can have 2 threads right ? – ahmed nader Jun 10 '16 at 15:21
  • 1
    @ahmednader: Yes, that is why I said few people suggest other approaches like coreCount*2, but I feel it depends on processor architecture. – kosa Jun 10 '16 at 15:22