in Education by
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)

1 Answer

0 votes
by
Correct choice is (c) Execute foreign code while holding a lock The best explanation: To avoid deadlock situation in Java programming do not execute foreign code while holding a lock.

Related questions

0 votes
    Which of this method is used to avoid polling in Java? (a) wait() (b) notify() (c) notifyAll( ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 24, 2021 in Education by JackTerrance
0 votes
0 votes
    _jspService() method of HttpJspPage class should not be overridden. (a) True (b) False This question was ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 24, 2021 in Education by JackTerrance
0 votes
    What must be done in order to implement Lexical Scoping? (a) Get the object (b) Dereference the ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 24, 2021 in Education by JackTerrance
0 votes
0 votes
    What can be done to monitor the memory usage? (a) Profiling (b) Sequencing (c) Serializing (d) ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 22, 2021 in Education by JackTerrance
0 votes
0 votes
    What data structure should be used when number of elements is fixed? (a) Array (b) Array list (c ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 24, 2021 in Education by JackTerrance
0 votes
    Which file separator should be used by MANIFEST file? (a) / (b) \ (c) - (d) // The ... questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 24, 2021 in Education by JackTerrance
0 votes
0 votes
    Which tag should be used to pass information from JSP to included JSP? (a) Using tag (b) Using ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 24, 2021 in Education by JackTerrance
0 votes
    What should be the type of script_url? (a) Object (b) String (c) Array (d) Any of the mentioned ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 23, 2021 in Education by JackTerrance
0 votes
    What should be the value of the type attribute of a variable if the type of file is CSS? (a) ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 22, 2021 in Education by JackTerrance
...