Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a dual core android device. Is there any way to set CPU Affinity for android tasks ?

share|improve this question

No, I suspect that there isn't any app that can do the job. You could write it yourself, it shouldn't be too hard. It seems that the best way to do it is using the NDK but it should be possible even in Java.

share|improve this answer
And the Java method uses JNI, so even Java needs to get help from the native side of things. – Prof. Falken Jun 2 '12 at 6:44

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.