Subject: server agent
From: Ann Smith (annie_smith888@yahoo.com)
Date: Fri Nov 29 2002 - 19:28:25 MET
Hi,
I have learned that the Agent's message queue is synchronized, that lead me to think whether the receive() method, accesses the message queue sequentially or when two messages arrive at the same time, there is some way in which two separate threads are spawned from the agent for receiving every message?
This is important to me because I was wondering if the current implementation of receiver behaviour is enough for my agent to function as a server waiting for messages from other agents, or do I need to have my own multithreaded implementation of the server inside my agent? And if so, how can I use the agent's sequential receive()(if it is sequential), when I wish to handle multiple connections, or rather messages simultaneously?
Thanks
Ann
---------------------------------
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now
Hi,
I have learned that the Agent's message queue is synchronized, that lead me to think whether the receive() method, accesses the message queue sequentially or when two messages arrive at the same time, there is some way in which two separate threads are spawned from the agent for receiving every message?
This is important to me because I was wondering if the current implementation of receiver behaviour is enough for my agent to function as a server waiting for messages from other agents, or do I need to have my own multithreaded implementation of the server inside my agent? And if so, how can I use the agent's sequential receive()(if it is sequential), when I wish to handle multiple connections, or rather messages simultaneously?
Thanks
Ann
This archive was generated by hypermail 2a22 : Fri Nov 29 2002 - 19:59:38 MET