In one of my c code file, one of the global variable which needs to be update by almost every procedure in that file, is being locked and unlocked with mutex everytime and at every place.
In my knowledge using too much of synchronization with mutex's lock and unlock definitely slow down the performance.
So, My query is that how can i gain at performance level or how can i reduce the use of mutex ?
I hope my question is clear else let me know.I shall try to be more clear.