First of all you can specify that the process is only allowed to run on
this single CPU. To prevent others from using the CPU you can set the
process to a realtime priority. This will of course allow others to use
your CPU while your process is sleeping. If that is undesired, you
might have to modify the cpus_allowed set for all other processes in
the system. Otherwise you could modify your kernels scheduler.
Your kernel does not seem to provide a system call to set the
cpus_allowed set for a process. AFAIK such a system call exists in the
2.5 series. Either backport that system call, or take a look on the
module I have written:
http://www.daimi.au.dk/~kasperd/comp.os.linux.development.faq.html#affinity
--
Kasper Dupont -- der bruger for meget tid på usenet.
For sending spam use mailto:aaa...@daimi.au.dk
or mailto:mcxumhv...@skrammel.yaboo.dk