[concurrency-interest] Bounded PriorityBlockingQueue
oleksandr.otenko at oracle.com
Wed Jun 26 15:12:22 EDT 2013
Your queue always rearranges elements - both on enqueue and dequeue.
You need to figure out how to take advantage of elements being ordered
after any enqueue. There are many publications on this.
On 26/06/2013 19:23, Gustav Åkesson wrote:
> I had a use case for a bounded priority blocking queue in a
> large-scale server but couldn't find any useful implementation. Below
> is my implementation:
> Feel free to have a look at it, test it and come up with feedback and
> improvements. Also, if you have had the same requirements as I, feel
> free to use it but don't forget to contribute if/when you find
> improvements. :-)
> Best Regards,
> Gustav Åkesson
> Cogitel AB
> Concurrency-interest mailing list
> Concurrency-interest at cs.oswego.edu
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Concurrency-interest