1

When should I use semMCreate vs. semBCreate? In my opinion, they are both the same.

Eric Galluzzo
  • 3,191
  • 1
  • 20
  • 20

1 Answers1

1

semMCreate creates a Mutex Semaphore, semBCreate creates a Binary Semaphore, and they are actually quite different.

Very basically: you use the Mutex to protect a critical section of code, and you use a Binary Semaphore to synchronize access to a shared resource. Especially in VxWorks.

You can find more information in the answers to this question.

Bye!

Community
  • 1
  • 1