On 9/24/06, Frédéric Brégier <[EMAIL PROTECTED]> wrote:
I saw also a blocking queue implemented in MINA using synchronized. If I look at several papers on the concurrent part of Java 5, they all say that BlockingQueue from concurrent is better than using synchronized (far better). However the blocking queue in Mina is quite specific, so perhaps changing it to Java 5 model can be difficult.
No, it's not difficult. org.apache.mina.util.Queue can be replaced with java.util.Queue, and org.apache.mina.util.BlockingQueue can be, too. We could replace it with LinkedBlockingQueue, but we also could improve our legacy queue to use advanced concurrency feature because array-based queue can be better at some cases. Yes, we need to run a benchmark. Trustin -- what we call human nature is actually human habit -- http://gleamynode.net/ -- PGP key fingerprints: * E167 E6AF E73A CBCE EE41 4A29 544D DE48 FE95 4E7E * B693 628E 6047 4F8F CFA4 455E 1C62 A7DC 0255 ECA6
