
"Anthony Williams" <anthony_w.geo@yahoo.com> wrote in message news:hcxmjaqw.fsf@yahoo.com...
Roland Schwarz <roland.schwarz@chello.at> writes:
[...]
* Contention on the map. Ideally we don't want to have any contention for unrelated mutexes. Chris Thomasson has suggested using a global lock-free hashmap for this sort of thing.
You have got to be careful when you make use of this technique... http://groups.google.com/group/comp.programming.threads/msg/56406d367ac85dcb You either have to know exactly what your are doing (e.g., only use hashmap the in your libraries system api), or by following another simple method: http://groups.google.com/group/comp.programming.threads/browse_frm/thread/e0... other than those caveats, using a global hashmap for this sort of thing usually works out fine.