[Charset iso-8859-1 unsupported, filtering to ASCII...]
> Hi,
>  
> I've few doubts the pre-emption capabilities of RT-Linux. If a periodic
> task of Computation time C and period P. Then, in case C>P, then does
> the RT-Linux scheduler pre-empt the over-running task pre-empt and
> schedule other tasks. 
>  
> I'm asking this because an explicit call is made o pthread_wait_np()
> function which schedules it. 
>  
> I can summarize my problem like this :
>  
> Let my task1 program be :
>  
> while(1)
> {
>     pthread_wait_np();
>     while(1)
>     {
>         // I won't put any pthread_wait_np() here but can the scheduler
> interrupt me??? 
>  
>         rtl_printf("Task1");
>     }
> }
>  
> Let my task2 program be :
>  
> while(1)
> {
>     pthread_wait_np();
>     while(1)
>     {
>         // I won't put any pthread_wait_np() here but can the scheduler
> interrupt me??? 
>  
>         rtl_printf("Task2");
>     }
> }
>  
> I expected an output of "Task1" and "task2" interchangeably. 
>  
> I modified the examples/hello.c to put this code and found that my
> system crashed and didn't do anything else.

it did not crash , it just did what you told it to do , run a realtime task 
100% of the time, no time left for linux, it did not crash it just "froze"
if you would put some sort of timeout into the task and wait for this timout
to occure then you would see that linux will "wake up" again as soon as it
get scheduled.

you don't want linux to preemt your realtime task do you ?

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