[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Bidirectional io.open()...anyone got one?
- From: gary ng <garyng2000@...>
- Date: Fri, 6 Jul 2007 20:08:09 -0700 (PDT)
--- Javier Guerra Giraldez <javier@guerrag.com> wrote:
> what you're asking for could (in theory, i guess)
> would need sockets
> (which are bidirectional). you creae a socket pair
> (using socketpair(),
> of course), give one to the process creator and use
> the other to read/write
>
The hard part though is, how to coordinate the reading
and writing in a non-threading environment ? Reading
and writing from the same process in such a situation
seems to create a natural deadlock situation.
____________________________________________________________________________________
Park yourself in front of a world of choices in alternative vehicles. Visit the Yahoo! Auto Green Center.
http://autos.yahoo.com/green_center/