multithreading - My program hangs on pthread_rwlock_wrlock -
i have 9-threaded program hangs after sometime on pthread_rwlock_wrlock
pthread_rwlock_wrlock(p_lock) write(file_handler, buff, len); pthread_rwlock_unlock(p_lock);
after sometimes, program hangs , threads found blocked lock. however, same program seems working fine when replaced rwlock mutex.
Comments
Post a Comment