[linux-audio-dev] sched_setscheduler question ...

New Message Reply About this list Date view Thread view Subject view Author view Other groups

Subject: [linux-audio-dev] sched_setscheduler question ...
From: John Lazzaro (lazzaro_AT_CS.Berkeley.EDU)
Date: Fri Jun 09 2000 - 23:31:07 EEST


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 -------------------------------------------------------------------------


New Message Reply About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b28 : Sat Jun 10 2000 - 00:17:59 EEST