On Wed, 2009-06-10 at 10:22 -0600, Daniel Lyons wrote: > > On Jun 10, 2009, at 4:22 AM, Toralf Wittner wrote: > > As written above the serial execution of an Agent's actions makes this > > thread-safe. > > > If the actions are executed serially, what is the benefit of having > multiple threads per agent?
There is none. Did anybody say there are multiple threads per agent? There are two thread pools shared by all agents - a cached thread pool where actions enqueued via send-off go into and a fixed thread pool for actions enqueued via send. The actions of all agents are submitted to these two pools and all together run interleaved in different threads. However at a given point in time there is only one thread for a given Agent. And an agent's actions run one after another. Cheers, Toralf > — > Daniel Lyons > http://www.storytotell.org -- Tell It! > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---