I'm doing my first parallel programming assignment and have very little idea what I'm doing with the whole mutex locking situation.
I'm trying to use Helgrind to locate race conditions in my code, and when I have locks where I think they should be, Helgrind returns an astonishing 7300 errors! However, removing some locks in a critical section actually reduces my errors to 6000, though I know this an area where locks are necessary.
What could be causing this? And maybe as a general statement could someone give me a reference to a good source explaining mutex locks for newbies? Thank you!