Select the correct answerWhat should not be done to avoid deadlock?OptionsExecute foreign code while holding a lockAvoid hold several locks at onceAvoid using multiple threadsUse interruptible locks
Question
Select the correct answerWhat should not be done to avoid deadlock?OptionsExecute foreign code while holding a lockAvoid hold several locks at onceAvoid using multiple threadsUse interruptible locks
Solution
The correct answer is "Execute foreign code while holding a lock". This should not be done to avoid deadlock.
Similar Questions
What is Deadlock? List the conditions that lead to deadlock.
what are necessary conditions for Deadlock explain with RAG & example.
One can only prevent deadlock by adopting a policy that must eliminate all of the deadlock conditions. Group of answer choicesTrueFalse
A set of processes is deadlock ifGroup of answer choicesall processes are trying to kill each othereach process is blocked and will remain so forevernone of the mentionedeach process is terminated
Which of the following condition is required for a deadlock to be possible?Group of answer choicesa process may hold allocated resources while awaiting assignment of other resourcesno resource can be forcibly removed from a process holding itmutual exclusionall of these
Upgrade your grade with Knowee
Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.