In linux, I can use "taskset" to assign a task to whichever cpu I want:
taskset -c 0 a.out
then a.out is assigned to be execute on the first cpu.

In Solaris, I find the command "pbind" can bind pid to some cpu, but it is 
inconvenient:
SYNOPSIS
       pbind -b processor_id pid
if I want to assign a.out to cpu 0,
what should I do?
I don't even know the pid of a.out before it executes.
-- 
This message posted from opensolaris.org

Reply via email to