How to pin OS and a process in different CPU core?

view full story

http://android.stackexchange.com – I am running a benchmark in android. I want to pin the OS in core-0 and pin the benchmark app in core-2. Total number of cores are 4. Is there a way to do it? Just to elaborate more on this, I have read about Processor affinity and Affinity mask. They are good for processes or threads but what about OS itself. Does the OS run on core-0 only or can it also (in general) load both core-0 and core-2. (I have switched off the other two cores: core-1 and core-3) (HowTos)