Hi. Recently, I am working on an multi-thread application that widely uses mutex functions: WaitForSingleObject and ReleaseMutex.
After some benchmarks I found that these functions are 50..100 times(sic!) slower than in Windows.
The test program compiled natively for Linux (using pthread library) demonstrates only 1.5 times slower functions (compared to the same program not using mutexes) which is pretty acceptable.
So, what can I do in order to speed up these functions?