W3C home > Mailing lists > Public > www-jigsaw@w3.org > May to June 1999

org.w3c.tools.dbm

From: <kabir@our.st>
Date: Tue, 29 Jun 1999 16:09:19 -0400 (EDT)
Message-Id: <199906292009.QAA11755@www10.w3.org>
To: jigsaw <www-jigsaw@w3.org>
Question regarding jdbm class:

Is this implementation thread safe?  I've noticed that bucket lookups are synchronized, but I am not clear whether this guarantees thread-safety (or rather data integrity).  

I have also noticed some of the commented caveats in the jdbmBucket.java -- for example in jdbmBucket.add() regarding bucket splits -- but unfortunately I am not exactly clear on what actions would create such conditions.

Please note that I intend to use only the exposed jdbm interface and would not directly utilize (or subclass) the support classes; and that the objects that I am writing will guarantee that at any given time, only one thread will take destructive (w/u/d) action for a given key.

I would also greatly appreciate any information regarding usage and performance considerations (threading, file size caps, performance tweaks, etc.) for this class.  (I am aware of the key Enumeration issue.)

Thank you very much in advance.
Received on Tuesday, 29 June 1999 16:15:54 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 9 April 2012 12:13:29 GMT