3 ms·
Not if you don't want the hash table to change while doing some read only processing on it. Immutability ensures that the reference you get always point towards
by raphaelj 6y ago
Not if you don't want the hash table to change while doing some read only processing on it. Immutability ensures that the reference you get always point towards a object that is in a consistent state.
- AshamedCaptain 6y agoThat is not the point. The point is that the hash table can be updated in a way (e.g., atomic) that is invisible to other readers and thefore they always see a consistent version of the hash table itself.