Hi Touman:

> Message: 1
> Date: Sat, 2 Jan 2010 10:35:30 +0000 (GMT)
> From: TOUMAN <[email protected]>
> To: [email protected]
> Subject: [Stackless] Thought it is easy to right tasks
> continually
>     waiting    for messages
> Message-ID: <[email protected]>
> Content-Type: text/plain; charset="iso-8859-1"
> 

> I want to create three tasks which are continually waiting
> for messages and don not die until they recieve the "exit"
> message. I have written the code below:

Offhand, from looking at your code, your problem is that after the 
main tasklet does unit_B.send(msg), all your other tasklets are blocked
on a receive(). Once your main tasklet ends, the programme terminates
because no tasklets are running.

Your main tasklet needs to do a bit more work pumping values to the 
tasklets.

Cheers,
Andrew    





      

_______________________________________________
Stackless mailing list
[email protected]
http://www.stackless.com/mailman/listinfo/stackless

Reply via email to