Excerpts from FreeBSD-Hackers: 17-Aug-100 Critical (or equivalent) se..
by Karl [EMAIL PROTECTED]
> The software is running as user 'root' - does anyone have any pointers on how
> I can do this? (or how close I'll be able to get to doing this) - Theres only
> going to be around 6 or 7 calls to rename() but I must ensure they _all_
> happen before any other process is allowed to run again...
Take a look at rtprio(2), giving yourself a realtime priority will
guarantee you the CPU until you explicitly release it (or another higher
priority realtime process comes along). I'm not sure if the same
deadlock potential that exists with giving a process an idle priority
exists due to locking in the kernel, although I see no mention of it in
the man pages. It's definitely something I'd be wary of, though.
Regards,
Tom
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message