[gst-devel] Real Time Workers (SCHED_FIFO)

Stefan Kost ensonic at hora-obscura.de
Tue Jul 31 10:01:54 CEST 2007


Hi,

Esben Stien wrote:
> Stefan Kost <ensonic at hora-obscura.de> writes:
> 
>> imho SCHED_FIFO is a process wide seting. Thus if you call
>> sched_setscheduler(9 for your process this also affects all
>> gstreamer threads.
> 
> No, it doesn't. 
> 
> 20070222UTC150506 <wingo> b0ef: it wouldn't matter, the real work is
> done in another thread
> 20070222UTC150537 <b0ef> wingo: how about setting that worker thread
> SCHED_FIFO?
> 20070222UTC150610 <wingo> b0ef: unfortunately the answer is still no
> -- realtime + gstreamer still needs design work.
> 

I don't thinks that is right. Have you read the man page for sched_setscheduler?
"Child processes inherit the scheduling algorithm and parameters across a fork()."

If it is even keep for a fork(), threads for sure inherit the setting too. Linux
implements threads as lightweight processes.

Stefan




More information about the gstreamer-devel mailing list