Ramon Costa i Castello wrote:

> Could you, please, indicate how did you measure it ?
> (is the code available ?)

I made 4 threads with different priority, that (almost) look like this

while(1)
    pthread_np();
    time = gethrtime()
    rtf_put(time)
}

and logs the information in userspace.

for further information I have posted a message with the code.

>
> Which machine did you use ?
>

a PIII 666 mHz, No name pc.
I have olse tested it on a AMD-k6 500 mHz but the results was wery bad. So I shiftes
to a PIII  666.
I do undestand the problem from thread 1 to 2 but not 3 and 4. 3 and 4 should have
lower priority and I think it ts a bit wired.

>
> Thank You in advance,

>
> R. Costa-Castello
>
> Anders Gnistrup wrote:
>
> > Hi all.
> >
> > I have messured the latency in a multithreaded program. I have 4 threads and the
> > latency look like this.
> >
> > thread 1   : priority 0 -> latency 11-25 uSec.
> > thread 2   : priority 1 -> latency  11 - 50uSec.
> > thread 3   : priority 2  -> latency 11 - 19uSec.
> > thread 4   : priority 3  -> latency 11 - 15uSec.
> >
> > just looking at the fact one would assume that thread 4 have the higest
> > priority. But in linux 0 is just 0 and positive numberes are 'nice' -> lower
> > priority. Is this different in RTLinux.
> >
> > Anders Gnistrup.

----- End of forwarded message from [EMAIL PROTECTED] -----
-- [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/

Reply via email to