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

Popular posts from this blog

matlab - "Contour not rendered for non-finite ZData" -

delphi - Indy UDP Read Contents of Adata -

javascript - Any ideas when Firefox is likely to implement lengthAdjust and textLength? -