Which of the following statements is false?

a. If several synchronized statements in different threads are trying to execute on an object at the same time, only one of them may be active on the object—all the other threads attempting to enter a synchronized statement on the same object are placed in the blocked state.
b. When a synchronized statement finishes executing, the object’s monitor lock is released and one of the blocked threads attempting to enter a synchronized statement can be allowed to acquire the lock to proceed.
c. Java also allows synchronized methods. Before executing, a synchronized instance method must acquire the lock on the object that’s used to call the method.
d. Using a synchronized block to enforce mutual exclusion is an example of the design pattern known as the Java Exclusion Pattern.


D

Computer Science & Information Technology

You might also like to view...

If the Type argument of the MessageBox action is set to ____, a black exclamation point in a yellow triangle appears on the message box.

A. Information B. Warning! C. Warning? D. Critical

Computer Science & Information Technology

You should plan the structure of the worksheets in a workbook before you begin entering data

Indicate whether the statement is true or false

Computer Science & Information Technology

What is dynamic text? How is it different than static text? How is it used?

What will be an ideal response?

Computer Science & Information Technology

Critical Thinking QuestionsCase A-1Ever since the first time David lost an important document due to a power outage, he has been fanatical about saving his work. Currently, he is creating a Photoshop document for an important client, and his deadline is looming. If he lost the document now, he'd never be able to meet the deadline and he'd probably be fired. David knows that the key to choosing a file format is ____.

A. knowing the size of the file B. knowing how the file will be used C. knowing the screen resolution of the computer that will use the file D. all of the above

Computer Science & Information Technology