1

Does POSIX specify a memory consistency model for its multithreading interface (semaphores and pthreads)? I'm not talking about atomic primitives, but a pseudo-formal specification for the visibility of side effects in the sense that C11 specifies happens before, synchronize with, inter-thread happens before, modification-order, visible side effect and so on (note that C11 uses these concepts not only for atomic primitives, but also for lock-based primitives such as mtx_lock/mtx_unlock and others that have an equivalent in POSIX).

Jonathan Leffler
  • 730,956
  • 141
  • 904
  • 1,278
Mario Robles
  • 111
  • 6

0 Answers0