in Education by
Which of these method wakes up all the threads? (a) wakeAll() (b) notify() (c) start() (d) notifyAll() This question was addressed to me at a job interview. My doubt is from Creating Threads topic in division 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 answer is (d) notifyAll() Easy explanation: notifyAll() wakes up all the threads that called wait() on the same object. The highest priority thread will run first.

Related questions

0 votes
    Which of these method wakes up the first thread that called wait()? (a) wake() (b) notify() (c ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 24, 2021 in Education by JackTerrance
0 votes
0 votes
    Which of this method is used to make all elements of an equal to specified value? (a) add() (b) ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 25, 2021 in Education by JackTerrance
0 votes
0 votes
    Which of these methods can randomize all elements in a list? (a) rand() (b) randomize() (c) ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 25, 2021 in Education by JackTerrance
0 votes
0 votes
    Which of these class is related to all the exceptions that can be caught by using catch? (a) ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 25, 2021 in Education by JackTerrance
0 votes
0 votes
0 votes
0 votes
    Which of these class is super class of all the events? (a) EventObject (b) EventClass (c) ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 24, 2021 in Education by JackTerrance
...