Mark wrote:
The "Configuring Thread Model" page should also apply for UDP-based
systems.  Just make sure you are not using an ExecutorFilter and you can
pass in an Executor that only uses one thread.

Hi, Mark,

I suppose I should have been more clear on the questions I still had after reading that page.

1. DatagramAcceptor doesn't take a max number of IO threads, unlike SocketAcceptor.

2. DatagramAcceptor takes an executor - I have never been able to find any mention in the docs on what exactly gets submitted to this executor (all I know is that it's not related to IO threads, which is parameterized by the above int) - but experimentally, I found I cannot pass in a single-threaded executor, since it seems that the call to bind() for all but the first DatagramAcceptor will block. And I did not add any filters.

Thanks for answers.
--
Yang Zhang
http://www.mit.edu/~y_z/

Reply via email to