David Olofson wrote:
> 
> Wed, 22 Mar 2000 [EMAIL PROTECTED] wrote:
> > (BTW: from the Linux man page:
> >     As SCHED_FIFO and SCHED_RR processes can preempt
> >        other processes forever, only root processes are allowed to activate these
> >        policies under Linux.
> > )
> 
> Yep, you have to have *some* kind of adrenaline rush left with protected memory
> and all! ;-) If you want to be completely safe, you could always throw in a
> watchdog thread or something...

The watchdog thread would be preempted as well.  If Linux does
SCHED_FIFO and SCHED_RR by turning off interrupts, then even setting a
timer interrupt will not work.  The only option may be to have a
hardware COP watchdog card in the PC.

 I was thinking Magic SysRq key to kill the
> current (SCHED_FIFO or SCHED_RR) thread as another alternative, but I might be
> missing something that already exists.
> 
> And as for the root privileges requirement, it has been discussed adding a
> "real time" user group capability instead. (I'm not up to date with this,
> though.) Running RT apps as root just for the scheduling is not all that nice in
> production systems, especially not if they are going to run user installed
> third-party plugins in those threads...

Only your scheduler has to be root.  Your scheduler is responsible for
changing the policy for a process.  Only that process will have its
policy changed.  Any processes that your scheduler controls can be in
user space.

Read the man page for sched_setscheduler.

- Kal.

> 
> Regards,
> 
> //David
> 
>      P r o f e s s i o n a l   L i n u x   A u d i o
> · ··-------------------------------------------------·· ·
>          MuCoS - http://www.linuxdj.com/mucos
>      Audiality - http://www.angelfire.com/or/audiality
>  David Olofson - [EMAIL PROTECTED]
> -- [rtl] ---
> To unsubscribe:
> echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
> echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
> ---
> For more information on Real-Time Linux see:
> http://www.rtlinux.org/rtlinux/
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
---
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/

Reply via email to