When should I use semMCreate
vs. semBCreate
? In my opinion, they are both the same.
Asked
Active
Viewed 1,595 times
1

Eric Galluzzo
- 3,191
- 1
- 20
- 20

user5984751
- 19
- 2
1 Answers
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

Paolo Tagliapietra
- 186
- 9