Rik van Riel <[EMAIL PROTECTED]> wrote:
> On Mon, 3 Jan 2000, Sandy Harris wrote:
>
>> I'd like to run one copy of the search code in such a way that it
>> monopolises one CPU, in hopes it will succeed relatively quickly.
>> Is there a way to do that?
>
> Yes, but you don't want to do that (read on)...

Agreed, but to answer the original question anyway: you can run the
search code as a realtime process (SCHED_FIFO or SCHED_RR scheduling
policy). See "man sched_setscheduler". I don't know of a standard
utility that can set the scheduling policy for you, so you might need
to write a short program that calls sched_setscheduler.

>> I'd also like to run a second copy at low priority, set up so it
>> will not interfere with either the primary prime searcher or
>> anything else I want to do with the machine.

nice -19 command args...

Regards,
Borislav
-
Linux SMP list: FIRST see FAQ at http://www.irisa.fr/prive/dmentre/smp-howto/
To Unsubscribe: send "unsubscribe linux-smp" to [EMAIL PROTECTED]

Reply via email to