title: How could I know which core a process is running on?
body: <p>I am currently working on a project about setting process to one core in linux environment. I use sched_setaffinity to do this job and I wonder whether there are some functions provided by linux to  get which core the process is running on. I use top command and find it could get this info using j   option. So i am sure there are some ways to get this info in user space.</p>