Locks at this fine of granularity are likely not needed on most cases. This is why transactional memory is a good alternative--it will allow synchronization to be used when needed, rather than unnecessarily, while still maintaining thread safety.
Locks at this fine of granularity are likely not needed on most cases. This is why transactional memory is a good alternative--it will allow synchronization to be used when needed, rather than unnecessarily, while still maintaining thread safety.