Subject: RE: [jade-develop] ParallelBehaviour
From: Bellifemine Fabio (Fabio.Bellifemine@TILAB.COM)
Date: Mon Nov 11 2002 - 09:18:48 MET
JADE launches 1 thread per agent, therefore all behaviours and subbehaviours share the same unique thread.
The scheduling policy is cooperative which means that all behaviours and subbehaviours know that they have to release the control otherwise their cooperant behaviours will never be executed.
On the other hand, if you needed multi-threaded tasks, JADE could not give not anything better than the thread scheduler of Java, at least not without modifying the JVM.
Fabio.
> -----Original Message-----
> From: Risto Rangel-Kuoppa [mailto:rir785@mail.usask.ca]
> Sent: 11 November 2002 03:49
> To: 'Peng Xu'; jade-develop@sharon.cselt.it
> Subject: RE: [jade-develop] ParallelBehaviour
>
>
> Hi Peng! ... I have make some tests with ParallelBehaviour,
> but each of
> the sub behaviors of the ParallelBehaviour, keeps running in a
> RoundRobin basis, and if one goes into a infinite loop, the
> rest of the
> supposed "parallel behaviours" never run, therefore, I assume
> they still
> work under the same thread (too bad), but this is what I
> think based on
> my experience of less than one month with Jade ... So, if any Jader
> Knight, more experienced, could please verify what I am
> saying, it will
> also help me. :o)
>
> See you!
>
> Risto.
>
> -----Original Message-----
> From: jade-develop-admin@sharon.cselt.it
> [mailto:jade-develop-admin@sharon.cselt.it] On Behalf Of Peng Xu
> Sent: Sunday, November 10, 2002 10:30 PM
> To: jade-develop@sharon.cselt.it
> Subject: [jade-develop] ParallelBehaviour
>
> Hello everyone,
>
> According to the Jade programmer guid ParallelBehaviour allows
> behaviours
> run concurrently. So does it mean that N behaviours can run
> at the same
> time and each behaviour runs in an independent thread in Jade? I think
> it
> should according to the FIPA specification. But some jade paper says
> jade is
> one thread-per-agent rather than one thread-per-task/conversation, and
> every
> behaviour must release the control to allow the other behaviours to be
> executed. So which one is right or I understood something wrong?
>
> Thanks!
>
> Peng
>
>
> _______________________________________________
> jade-develop mailing list
> jade-develop@sharon.cselt.it
> http://sharon.cselt.it/mailman/listinfo/jade-develop
> UNSUBSCRIBE INSTRUCTIONS AT
> http://jade.cselt.it/mailing.htm#unsubscribe
>
> _______________________________________________
> jade-develop mailing list
> jade-develop@sharon.cselt.it
> http://sharon.cselt.it/mailman/listinfo/jade-develop
> UNSUBSCRIBE INSTRUCTIONS AT
> http://jade.cselt.it/mailing.htm#unsubscribe
>
This archive was generated by hypermail 2a22 : Mon Nov 11 2002 - 09:18:49 MET