[concurrency-interest] Proposal WeightedLinkedBoundedQueue

Amarnath Nanduri amar_nan at yahoo.com
Wed Nov 22 21:54:29 EST 2006


Defined by the end user???? through interfaces or some other means...

David Holmes <dcholmes at optusnet.com.au> wrote:         How do you define and measure the "weight" of an object?  
  
 David Holmes
    -----Original Message-----
From:    concurrency-interest-bounces at cs.oswego.edu    [mailto:concurrency-interest-bounces at cs.oswego.edu]On Behalf Of Thierry    Hanot
Sent: Wednesday, 22 November 2006 10:18 PM
To:    concurrency-interest at cs.oswego.edu
Subject: [concurrency-interest]    Proposal WeightedLinkedBoundedQueue


       
   A small proposal for adding a new    class in the concurrent package.
   All bounded collection are bounded    to avoid to use to much memory.(At least in my case J).
   But the element put in those    collections are often with different size. 
   In my case  BoundedQueue is    used as an event queue and we can have composite events which contains itself    many events.
   What do you think about adding    some bounded collection no more based on the count but on the sum of the    weight of the object inside?
    
   After a quick look on the code of    the LinkedBoundedQueue it seems pretty easy to  do.
    
   Does somebody else can see the    advantage of this kind of object and is there enough people interested to make    it a part of the concurrent package?
    
   B.R
    
    
   Thierry Hanot     
    

_______________________________________________
Concurrency-interest mailing list
Concurrency-interest at altair.cs.oswego.edu
http://altair.cs.oswego.edu/mailman/listinfo/concurrency-interest


 
---------------------------------
Everyone is raving about the all-new Yahoo! Mail beta.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/attachments/20061122/9189508e/attachment.html 


More information about the Concurrency-interest mailing list