03-16-2012, 07:30 AM
There's a synchronization object called read-write lock exactly for that purpose, but on most systems it's implemented using critical sections and events internally, so there's really not much benefit other than prioritization.
I've read about lockless lists, too, not requiring any synchronization at all, but they are notoriously known to be slow.
I've read about lockless lists, too, not requiring any synchronization at all, but they are notoriously known to be slow.