I studied it further and I am getting "semaphore handle" leaks. The number of semaphore handles keep growing. The handle viewer is not giving me any other information. I am using the pthread_mutex_lock() and unlock, pthread_mutex_init(&mutex,3333,D1D1,3333NULL); etc. and these are not giving me a leak in MAC/Linux. What am I missing here ?.