My application is very very speed esential and even a microsecond matters.I am using semaphore(1,1) at varios places. I think it can be easily converted into mutex.But I want to know if it will be advantageous or its one and the same thing as far as speed is concerned. I will be oblidged for any constructive answer. Thanks.
Asked
Active
Viewed 1,180 times
1
-
Are you optimizing without having searched for and found bottlenecks first? That sounds like a recipe for disaster. – Joachim Sauer Aug 10 '11 at 07:01
1 Answers
1
There are some differences that may impact performance. See this similar question for more details: What is the difference between semaphore and mutex in implementation?