Eric Peterson wrote:

> On Thu, Dec 14, 2000 at 11:37:29AM -0500, Stephen D. Cohen wrote:
> > Hi,
> >
> >       David Olofson offered an excellent treatise on why multiple open of a
> >       FIFO is a bad idea.  I would like to offer a fairly simple solution.
> >
> >       Simply create a block of FIFOs on the RTL side of the house.  Attach
> >       them all to the same handler (it gets the FIFO number when it is
> >       called, but since you were planning to multi-open, it probably doesn't
> >       matter).
>
> >       Then simply have your user-mode programs try opening FIFOs until they
> >       succeed or run out of FIFOs to try.
>
> Steve,
>
>     Thanks for the suggestion - I thought a bit about doing this, but it
>     doesn't scale too well (n**2).  Assuming I have a unique FIFO for each
>     RT-task, and one for every Linux process, the number of FIFOs starts
>     getting large.
>
>     David O's suggestion of a message queue seems to be a good solution - now
>     just to find one...

RTAI has a POSIX queues module, why not take a look at that?
Cheers
Trev

>
>
> Regards,
> Eric
>
> --
> God made everything out of nothing, but the nothingness shows through.
>                 -- Paul Valery
>
> Eric Peterson WB6PYK (805)370-3046 [EMAIL PROTECTED] HOME: [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/rtlinux/

--
Lineo Inc. - (formerly Zentropix)

Tel: +44 (0)1273 234 647         Fax: +44 (0)1273 704 482

Visit http://www.zentropix.com/     for Real Time Linux Tools
Visit http://www.realtimelinux.org/ for Real Time Linux Information



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