Short version of the question: I have 2 functions that share the same array, when one is editing it, the other is reading it. However, the vector is long (5000 samples) and concurrent access rarely happens. but the Mutex contention on MUTEX1 is slowing down the program. ‘ How can I lock certain locations of […]
The post How can i lock a MUTEX for an element in the array, not for the complete array appeared first on BlogoSfera.