4 ms·
> No. There are usually talking about 2 threads accessing the same code. Don't you mean two threads accessing the same data? Mutexes are about data protection
by bottled_poe 12y ago
> No. There are usually talking about 2 threads accessing the same code.
Don't you mean two threads accessing the same data?
Mutexes are about data protection. This usually manifests as exclusive exectution of code, but it is not the purpose.