thread doubt

hi All
i have one doubt. in my project am using thrd1 and thrd2. am using interface is mbox and now my doubt is thrd1 is posting data and thrd2 is reading data...?? how we will receive the data...

Are yoyu trying to coordinate read and writing? Use a mutex, pthread_mutex_t is the datatype used with pthreads.

The basic man pages for this:
pthread_mutex_init
pthread_mutex_destroy
pthread_mutex_lock
pthread_mutex_unlock
pthread_mutex_trylock

thanks :slight_smile: