Hi,

Am 30.06.2009 um 23:30 schrieb Kai:

Why is there a distinction between an action and a blocking action?
What kind of concerns arise when you send a potentially blocking
action to an agent and why is send-off better accommodated to deal
with it?

send serves the agent from a fixed ThreadPool. When all
threads in this ThreadPool are used up, your agents basically
freeze waiting in a queue for free threads. The number of threads
in this ThreadPool is limited. send'ing a blocking action basically
blocks the thread. Enough blocking threads might use up all
threads and there you go.

send-off allocates a new thread in a different ThreadPool.
So the aforementioned scenario cannot happen.

A Guru might want to give the details of the second scenario.

Sincerely
Meikel

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to