what is the condition required for dead lock in unix sustem ?

Answer Posted / sumeetece

If a program tries to call pthread_mutex_lock on a mutex
that it already has locked then the program will block.Since
the thread that holds the lock is the one that is now
blocked, the mutex can never be unlocked and the program is
DEADLOCKED.

Is This Answer Correct ?    14 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the advantage of executing a process in background?

692


Please describe the initial process sequence while the system boots up?

769


What is fork()?

789


Explain a zombie?

813


What is the full form of ipc?

847


How to write the program on full-duplex communication on bidirectional(e.g using two pipes)?

757


Explain how do you execute one program from within another?

711


What is ipc in unix?

749


Which ipc is the fastest in unix?

749


What are the various schemes available in ipc?

711


What are the various schemes available?

698


Explain the initial process sequence while the system boots up?

710


What is unix ipc?

736


Tell me set-user-id is related to (in unix)?

690


What is i-node numbers?

811