I am currently working on a project to configure a process for a single kernel in a linux environment. I use sched_setaffinity to accomplish this task, and I wonder if there are any functions provided by linux to get the kernel that runs this process. I use the top command and I believe that she can get this information using the j option. Therefore, I am sure that there are some ways to get this information in user space.
terry
source share