Barrier is used for scenarios where the number of producers and consumers is the same, while mbarrier
is used when the numbers differ.
Is this conclusion correct? Is this the fundamental difference and design intent between mbarrier
and barrier
?