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