xolotl wrote:Can I modify my data while someone else is reading it? Yes! Does that mean that readers might see the ground shift under them, e.g., while they are iterating over a collection?
Good question. I am not an expert on java.util.concurrent collections. We would have to ask this question to Doug Lee. However I imagine that if you are iterating (reading) and someone else is modifying, the results are king of unpredictable. But you will NOT get a ConcurrentModificationException.
I wonder how relational database handles that situation... This topic is not clear to me, but I am willing to learn from the experts... It has to do with isolation level.
This message was edited 1 time. Last update was at 31/10/2008 15:55:02
|