Suppose i have two threads:

Thread 1 has the highest priority and is a periodic thread, thread 2 has
the lowest priority and should run whenever thread 1 isn't running.
When I implement this with a simple

pthread_make_periodic_np(...);
pthread_wait();

call in het highest priority thread, and nothing at all in the lowest
priority thread (ie a while(1) loop), the lowest priority thread stops
once the highest priority thread starts and does not gain control
of the processor anymore.
The period of the highest priority thread varies from 5 to 500
milliseconds!

Is it thus normal that a lower priority thread cannot get to execute will
a higher priority thread is waiting for the timer interrupt or is there a
bug in my source code?

thx

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