Race conditions in threaded apps Threaded applications can experience race conditions Modification of common variables by multiple threads at once Even "variable++" can be non thread safe! Are usually fixed using mutexes pthread_mutex_lock( mutex ); /* do something */ pthread_mutex_unlock( mutex ); For more info, get a good pthreads book. ;-)