Re: Multithreaded UDP server vs. OrderedThreadPoolExecutor

2013-09-25 Thread Christian Hammers
Hello On Tue, 24 Sep 2013 11:51:04 -0700 Emmanuel Lécharny elecha...@gmail.com wrote: Le 9/24/13 9:47 AM, Christian Hammers a écrit : Hello I've written a server for a proprietary UDP protocol that needs to answer with exactly one packet for every incoming packet. All packets are

Re: Multithreaded UDP server vs. OrderedThreadPoolExecutor

2013-09-25 Thread Jon V.
Depends on what aspect of asynchronous you are looking for. The sockets are always async. If you have a bunch of ioprocessors then you have concurrency where more than one message can be processed at any given time. On Sep 25, 2013 6:15 AM, Christian Hammers chamm...@netcologne.de wrote: Hello

Re: Multithreaded UDP server vs. OrderedThreadPoolExecutor

2013-09-25 Thread Emmanuel Lécharny
Le 9/25/13 3:14 AM, Christian Hammers a écrit : Hello On Tue, 24 Sep 2013 11:51:04 -0700 Emmanuel Lécharny elecha...@gmail.com wrote: Just get rid of the executor, and increase the number of IoProcessor, you will be able to spread the load on many threads, and each new UDP message will be