What should not be done to avoid deadlock?
(a) Avoid using multiple threads
(b) Avoid hold several locks at once
(c) Execute foreign code while holding a lock
(d) Use interruptible locks
I have been asked this question in examination.
Question is from Multithreading topic in chapter Multithreading of Java
Select the correct answer from above options
JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)