[Stackless] How to send messages between tasklets in two different python programs

Jeremy Stott tins.jeremy at gmail.com
Sun Jan 3 03:01:10 CET 2010


On Sun, Jan 3, 2010 at 2:11 PM, TOUMAN <touman at btinternet.com> wrote:

> hi,
> I have two stackless python programs where each creates 3 tasklets.
>
> Program one creates tasks A,B and C and program two creates tasks D,E and
> F. As the tasklets A & D are in two different programs, how do you send
> messages from one to the other?
>
> I am assuming that you can not create stackless channels which connect
> between two different python programs?
>
> cheers
> tomcat
>
>
You could use sockets to communicate between your programs? see:
http://code.google.com/p/stacklessexamples/wiki/StacklessNetworking

Otherwise you might be able to use channels to communicate between two
threads? see:
http://code.google.com/p/stacklessexamples/wiki/StacklessThreads

Jeremy.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.stackless.com/pipermail/stackless/attachments/20100103/b50de060/attachment.htm>


More information about the Stackless mailing list