Problem
I want to lock a specific process to a specific CPU on a multiprocessor system.
Solution
The lockpid(ADM) command will allow you to lock a particular process to a specific processor.
First start the process. Then find the PID for that process. To find the PID of the process, type:
# ps -e | more <Enter>If you know the name of the process, you can use:
# ps -e | grep <name> <Enter>The syntax for locking the desired process to a specific CPU is:
# /etc/lockpid -l <cpu> <pid> <Enter>NOTE: the "-l" is a lower case "L".
To unlock a process:# /etc/lockpid -u <pid> <Enter>NOTES: Locking a specific process to a specific CPU will not disallow
the ability of other processes from using the CPU.Generally speaking, locking a process to a processor is not a good idea as it can negatively affect the performance of a multiprocessor system.
See also
man page lockpid(ADM)