On Thu, May 19, 2016 at 06:06:19PM +0900, SODA Noriyuki wrote: > Yes. > Easiest way is to call a locking system call always, in the case of > PTHREAD_PROCESS_SHARED. Oh, didn't think of that - nice, and only hits the stupid shared case (performance wise). Martin