Thread (3 messages) flat view 3 messages, 2 authors, 2008-01-18

Re: SCHED_FIFO & System()

From: Scott Wood <hidden>
Date: 2008-01-17 22:16:07

Matias Sundman wrote:
Hello,
I have some strange behavior in one of my systems.

I have a real-time thread under SCHED_FIFO which is running every 10ms. 
It is blocking on a semaphore and released by a timer interrupt every 10ms.
Generally this works really well.

However, there is a module in the system that makes a / system() / call 
from c-code ;

  system("run_my_script");

By calling and running a bash script. Independent of how the actual 
script looks like the real time thread does not get scheduled under 80ms 
-- the time it takes
for the system() call to finish.
Are you running a preemptible kernel?

-Scott
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help