[PJUG Javamail] super fast reentrant queues?
Scott Deboy
sdeboy at iname.com
Tue Sep 22 16:07:14 EDT 2009
There's also this project:
http://high-scale-lib.sourceforge.net/
A collection of Concurrent and Highly Scalable Utilities. These are
intended as direct replacements for the java.util.* or
java.util.concurrent.* collections but with better performance when many
CPUs are using the collection concurrently.
Scott
----- Original Message -----
From: "Derek Chiles"
To: pierce403 at gmail.com
Cc: javamail at pjug.org
Subject: Re: [PJUG Javamail] super fast reentrant queues?
Date: Tue, 22 Sep 2009 19:53:46 +0100
Hi Dean,
On Sep 22, 2009, at 19:12 GMT+01:00, pierce403 at gmail.com wrote:
> I have a bit of an academic question for the group. What would
> you say is the most efficient method of implementing
> shared/reentrant queues? I am in the midst of optimizing some
> packet sniffing code I wrote a while back. The model looks like
> this:
You almost certainly want to use the java.util.concurrent package for
the building blocks of your concurrent application, including
concurrent queues.
Specifically you may want to look at ConcurrentLinkedQueue or
LinkedBlockingQueue. I would test with both to see which performs
better in your application.
http://java.sun.com/javase/6/docs/api/java/util/concurrent/package-summary.html
If you plan to continue writing concurrent Java code, you may want to
check out _Java_Concurrency_in_Practice_ by Brian Goetz et al.
http://www.amazon.com/Java-Concurrency-Practice-Brian-Goetz/dp/0321349601
cheers,
Derek
_______________________________________________
Web Site - http://www.pjug.org/
Javamail mailing list
Javamail at pjug.org
http://www.pjug.org/mailman/listinfo/javamail
--
An Excellent Credit Score is 750
See Yours in Just 2 Easy Steps!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.pjug.org/pipermail/javamail/attachments/20090922/1bd1d370/attachment.html
More information about the Javamail
mailing list