On Wed, 29 Mar 2000, maryam wrote:

> I decided to start over again, So I reduced the problem, to just simply
> running a periodic task with the EDF scheduler (2.0.29), on a V1.2 RTLinux
> for(2.0.36). And there I got so many wierd results. Here is my simple piece

Just a moment: you have installed v1.2 on 2.0.29 kernel?
Use 2.0.36 or 2.0.38.

> fun()
> {
> static int counter=0;
> while (counter<20){
>  for (i=0 ... 1000);
> rt_wait_task()
> counter++
> }
> }

In my opinion you should never exit from this function. rt_wait_task() jest
sleeps until the next period. But the execution is started from the same
place. But after counter==20 you exit from the lop and then bad things may
happen.


> Why the while is needed...???? Doesn't rt_wait_task just make the whole
> process to go on...

No.

> I tried with the while(1), without it and as the example above... NONE OF
> THEM WORK...

while(1) should work. Please sent me the complete code.
You can download it to ftp://crds.chemie.unibas.ch/pub/incoming

> So now I am wondering probably my whole system is messed up. Specailly

Probably. 

> Is the piece of code wrong? could the version mismatch effect? Should I
> reinstall the whole thing and go with higher version?
2.0.38 with v1.3 or 2.2.14 with v2.x

--
Tomek

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