[Chicago-talk] Sharing data between processes

Jay Strauss me at heyjay.com
Wed Jan 21 22:02:55 CST 2004

I've been using threads for this thing.  I'd just like to do it in a way
doesn't require threads, since thread support isn't built into perl (in most
cases).  My process is such (pseudo code/process):

   # inside of connect {
   #    reader->new($customCode);
   #    reader->start;
   #    # which starts a new thread which sits on a socket reading messages
   #    # and calling method in the customCode

# now I do stuff like:

# meanwhile reader is get market quotes and populating a array in
# $customCode, which I can get at from $tws

I'm just trying to do it, maybe with processes, and avoid threads.
 Maybe storable will work.  I'll have to play with it.

Oh yeah, I'd like it to work on Windows too


----- Original Message -----
From: "Steven Lembark" <lembark at wrkhors.com>
To: "Chicago.pm chatter" <chicago-talk at mail.pm.org>
Sent: Wednesday, January 21, 2004 2:45 PM
Subject: Re: [Chicago-talk] Sharing data between processes

> > What ways can I share an object (or complex data structure) between
> > processes?  I know I can share simple structures (arrays, hashes,
> > between threads, but I was trying to avoid threads.
> Depending on how tightly coupled the proc's are in their
> handling of the object you may have one of the few cases
> where threads are really useful.
> --
> Steven Lembark                               2930 W. Palmer
> Workhorse Computing                       Chicago, IL 60647
>                                             +1 888 359 3508
> _______________________________________________
> Chicago-talk mailing list
> Chicago-talk at mail.pm.org
> http://mail.pm.org/mailman/listinfo/chicago-talk

More information about the Chicago-talk mailing list