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. Using a synchronized block to enforce mutual exclusion is an example of the design pattern known as the Java Exclusions Pattern. Actually, using a synchronized block to enforce mutual exclusion is an example of the design pattern known as the Java Monitor Pattern.

Computer Science & Information Technology

You might also like to view...

Write a short code fragment that uses a while loop to verify that the user enters a positive integer as input. You may assume that a Scanner object named input has already been created.

What will be an ideal response?

Computer Science & Information Technology

A(n) ________ is a window that displays when a program requires interaction with the user

Fill in the blank(s) with correct word

Computer Science & Information Technology

You can open a program from the Start screen or by ________ the file in File Explorer

A) double-clicking B) right-clicking C) selecting D) dragging

Computer Science & Information Technology

A web bug can do all of the following EXCEPT:

A. ?identify your IP address B. ?identify the last website you visited C. ?identify other bugs on the website D. ?identify your use of the web site containing the web bug

Computer Science & Information Technology