Subj : Memory synchronization with pthreads To : comp.programming.threads From : Chris Vine Date : Sun Jan 16 2005 07:51 pm Section 4.10 of IEEE Std 1003.1-2001 provides that a number of specified functions, such as pthread_mutex_lock(), pthread_mutex_trylock(), pthread_mutex_unlock(), sem_post() and sem_wait() "synchronize memory with respect to other threads". For a process with multiple threads does this imply that a call in a thread which, say, locks or unlocks a mutex will synchronise memory with respect to only the other threads in the process holding (or trying to hold) a lock on the mutex, or does it require all threads in the process to have memory synchronized, whether or not they are waiting on the mutex and indeed whether or not they have access to the mutex? Chris -- To reply by e-mail, remove the "--nospam--" in the address .