taskset.

$taskset -p 1578
pid 1578's current affinity mask: 1
$

taskset is used to  retrive or set the processor affinity
mask of either an  existing process,given it's PID, or to
run  a  new  process,  given  it's  command  name,with  a
specified  affinity mask. The  Linux scheduler  will then
honor the  given affinity mask,ensuring  that the process
in question runs only on allowed processors.

Copyright © 2009,  2010,  2011,  2012,  2013, 2014     BeautifulWork Project    e-mail:  ahiliation@yahoo.co.in
BeautifulWork Project comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law.