For Programmers: Free Programming Magazines  


Home > Archive > ithreads > July 2007 > Re: forks: shared variables between different applications or









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: forks: shared variables between different applications or
Elizabeth Mattijsen

2007-07-02, 4:30 am

At 10:44 AM +0200 7/2/07, Alvar Freude wrote:
>as I remember in an older documentation of forks.pm there was
>mentioned that it would be possible to use shared variables between
>different machines or completely different applications on one
>machine.
>
>Is this possible?


As far as I know, no.

I'm afraid I have been responsible for that notion. But since I'm
not the maintainer of forks anymore, you will need to take it up with
the current maintainer. And patches are always welcome, of course.

The main problem I see is in developing a protocol linking "shared"
variables: standard ithreads implementations don't need this as only
variables can be shared that already exist before a thread starts
(aka a fork() is done).


>I'm in the planing state of an (forking) application, which gets
>some commands from another application and it might be very easy to
>use such a feature instead of manually freeze/thaw the data and send
>it via manually opened sockets.


Well, if you would start the "other" application as a thread using
forks.pm, you should be able to share variables that way.


>Or is this a bad idea?


Not sure. ;-)


Liz
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com