1

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.

Joachim Sauer
  • 302,674
  • 57
  • 556
  • 614
Manish Garg
  • 61
  • 2
  • 9

1 Answers1

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?

Community
  • 1
  • 1
Peladao
  • 4,036
  • 1
  • 23
  • 43