How to determine the cpu number on which the process is running
Hi, guys:
When I fork multiple processes, is there some command or c function to see the cpu number on which the processes are running? Thanks |
You can see it in top -
Code:
top Please note that the task scheduler in the 2.6 series kernel will *automatically* redistribute processes in a SMP system if the cpu's are not equally loaded cheers |
Thanks. Which argument of "top" command I need to use? Because I did not see the 'P' column.
Quote:
|
Read the answer again - carefully.
|
All times are GMT -5. The time now is 10:23 AM. |