When a thread executing a synchronized statement (or method) completes or satisfies the condition on which another thread may be waiting, it can call Object method ________ or ________ to allow a waiting thread or all waiting threads to transition to the runnable state again. a.
a. notifyThread, notifyAllThreads
b. wakeUpThread, wakeUpAllThreads
c. notify, notifyAll
d. None of the above.
c. notify, notifyAll
You might also like to view...
How many elements does the array contain?
What will be an ideal response?
There are three calls to member functions of ostream object cout that set the format of stream output so that the format of the output is in fixed point, a decimal point always shows, and there are two places of decimals after the decimal point. Give these statements along with the necessary #include and using statements.
What will be an ideal response?
A(n) ____________________ is a security management system that compiles information from a computer network or individual computer and then analyzes it to identify security vulnerabilities and attacks.
Fill in the blank(s) with the appropriate word(s).
The comma operator
a) is a list of expressions separated by commas b) according to the ANSI C++ Standard, is supposed to be evaluated left to right c) not all compilers evaluate left to right, i.e., do not follow the C++ Standard, hence left to right evaluation should not be depended upon. d) has value equal to the value of the first expression in the list. e) all of the above