Hi everyone,

        I'm looking into adding sched_setscheduler support
to sfront (http://www.cs.berkeley.edu/~lazzaro/sa), and
had a quick question for the list --

---

        If there's only one process running on SCHED_FIFO,
and the process wants to let the SCHED_OTHER processes have
a chance at running, what's the best way to do this?      
Experimentally, calling usleep() with a value > 10ms does
it in practice (I assume this is > 1/HZ), but it does enforce
a minimum time delay -- is there a way to get "let SCHED_OTHER
processes that want to run run, then get back to me ASAP" 
behavior? 

        This is basically a way for the application to let
a "control-C" in the shell that creates it to terminate it
once every few minutes, w/o having to go through the hassle
of locating the X server, window manager, xterm, and shell
and setting them all to SCHED_FIFO too. 

---

        Thanks in advance,

                                                --john lazzaro

-------------------------------------------------------------------------
John Lazzaro -- Research Specialist -- CS Division -- EECS -- UC Berkeley
lazzaro [at] cs [dot] berkeley [dot] edu     www.cs.berkeley.edu/~lazzaro
-------------------------------------------------------------------------

Reply via email to