Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - pthread_mutex_init gives the same mutex address twice: (2 Items)
   
pthread_mutex_init gives the same mutex address twice  
i have a server process which creates a mutex for the client process, means when the client process starts, it gives a 
message to server process. the server process initializes a mutex for the client process. When the client process gets 
terminated, the server does not destroy the mutex. Again the client starts up, and in the server i get the same mutex 
address, during pthread_mutex_init call.

Is it a OK behaviour, without the destroy i am getting the same mutex again ?

Please help.

Regards,
Manas
Re: pthread_mutex_init gives the same mutex address twice  
pthread_mutex_init can give the same mutex address unless the mutex is not destroyed.. So valid behaviour.

Thanks.