Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

pthread_mutex_call blocks forever causing cpu usage 100%

pthread_mutex_lock() call never returns causing other threads to wait
for gaining its lock forever in turn causing 100% cpu load. I have tried
using alternate call pthread_mutex_trylock() which try to lock and if the
mutex is locked in some other thread it returns with an error code.

The above mentioned call pthread_mutex_lock is used in an application which
goes to full cpu load once mutex blocks forever, and even if i kill the application
and restart it, it will again go to full cpu load, the problem of full cpu load only gets
resolved when i restart the machine, is there any other alternate call or any other
possible solution for this problem.
Sign In or Register to comment.