His padding does not mean correct alignment. For instance, I want head
and tail to start on actual cache line boundaries. Dmitry's example code
does not do that. Keep in mind that its example code, not really meant
for production. Btw, I know Dmitry.
> This guy called Dmitry Vyukov that wrote this is a an expert.
>
> >Also, how can you claim starvation-free when you use pthread mutexs and
> > semaphores?
>
>
> Because i think Mutex and Semaphore of pthread for VxWorks real-time
> system and for QNX real-time system are real-time and starvation-free.
VxWorks has absolutely nothing to do with it. Afaict, you seem to have
copied binaries from a PThread emulation lib:
https://sourceware.org/pthreads-win32/index.html
You should mention the license it has in copying.lib? ;^/