Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> not sure there's much they can do about this, other than protecting all the built-in data structure operations with mutexes, like java's original data structures (Hashtable, Vector, etc)

However - this is fundamentally the incorrect approach, because Vector and Hashtable aren't protected from read-then-write race conditions.

Such internal locking guarantees that the collection stays structurally sound, but not that code accessing it is dealing with a single consistent state until it finishes.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: