📝 Question
#152
What will happen if a non-recursive mutex is locked more than once?
✓
Correct Answer
A. Starvation
💡
Explanation
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 a deadlock. It is because no other thread can unlock the mutex.
⌨️ Press
A
B
C
D
to select