title: barriers in SMP linux kernel
body: <p>Is there smth like pthread_barrier in SMP Linux kernel?</p>
  
  <p>When kernel works simultaneously on 2 and more CPUs with the same structure, the barrier (like pthread_barrier) can be useful. It will stop all CPUs entering to it until last CPU will run the barrier. From this moment all CPUs again works.</p>