On 29.10.2008, at 16:20, Stuart Halloway wrote:

> (1) *agent* is set thread locally whenever a thread is an agent
> action. It's all in the Java code, grep for AGENT

OK, that's like I guessed then.

> (3) send uses a thread pool that you should not assume you control, so
> blocking for e.g. I/O would be bad behavior and could hurt other
> agents' ability to progress. send-off gives you your own thread so you
> can't cause trouble by blocking

Then every iteration of ant behaviour (and evaporation etc.) creates  
a new thread, right? This implies that an agent is not forever bound  
to the same thread. Nor is a thread bound to one agent, as otherwise  
one could iterate with (send). Interesting.

Thanks,
   Konrad.

--~--~---------~--~----~------------~-------~--~----~
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
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to