Hi.
Try CGroups mechanism. First you should enable appropriate options in your kernel. They are CONFIG_GROUP_SCHED and CONFIG_CGROUPS afair.
Then check
this guide, it's very detail (its from Documentation/cgroups).
However, try
man taskset. Maybe it will be enough.