---Ben
Leave the scheduling to the system. Just go to nice +19, that way you'll only
get cpu time when the cpu is idle (well, not completely true, but the little
non-idle cpu time you get is negligable).
--
Frank v Waveren
f...@var.cx
ICQ# 10074100
Why do you want to do this? If you have some background
processing it to do, it might be better to do it in
a daemon in userspace.
Rich.
--
ri...@annexia.org | Free email for life at: http://www.postmaster.co.uk/
BiblioTech Ltd, Unit 2 Piper Centre, 50 Carnwath Road, London, SW6 3EG.
+44 171 384 6917 | Click here to play XRacer: http://xracer.annexia.org/
--- Original message content Copyright © 1999 Richard Jones ---
That is what kernel threads are for. So that you can play with the
process context state of what is otherwise just a driver.
Peter
It is a driver .. good luck with trying to re-nice a kernel driver.
You might start here ...
/usr/src/linux/init/main.c
... as there is an idle thread and take a look into the scheduler
code too. AFAIK though there cannot even be a API function as the
kernel is using the HALT instruction so your best bet might be
a 08/15 driver.
I am not going to ask why you want to do that, hope this is okay ;)
Juergen
--
\ Real name : Jürgen Heinzl \ no flames /
\ EMail Private : jue...@monocerus.demon.co.uk \ send money instead /
Oh, my bad. sorry.