Sail E0 Webinar
Question
What will happen if a non-recursive mutex is locked more than once ?
Options:
A .  Starvation
B .  Deadlock
C .  Aging
D .  Signaling
Answer: Option B


If a thread which had already locked a mutex, tries to lock the mutex again, it will enter into the waiting list of that mutex, which results in deadlock. It is because no other thread can unlock the mutex.



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers