Re: sharing & streams

[email protected] (Arthur Bergman)
Newsgroups perl.ithreads
Message-ID <[email protected]>
On torsdag, apr 10, 2003, at 14:13 Europe/Stockholm, Martin Roos wrote:

>
> Hi ,
>  has anyone any idea when will ithreads extend to the point that it 
> could share streams like socket & file handles ?
> i'm currently playing around with some little socket server's and 
> things like that but i almost always stump on the
> fact that i can only share the basic types of variables.
>  btw. if anyone has a goodlooking workaround how to get the handles 
> shared, even if only virtually , please share
> the knowledge with me :D
>  i have tried to play around with a solution which is based on the 
> idea that one thread has access to a socket and
> to a shared scalar and other threads may alter the shared scalar, 
> according to which the socket owner will take
> some actions, eg. read & write, but this is kindof slow and memory 
> exhausting on big i/o amounts. has anyone
> built other solutions ?
>
>  Martin
>

They can be shared in that they can exist in multiple threads, I don't 
know a good way of passing them between threads, I will try and 
experiment.

Arthur
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.