Which of the following best describes this reason?

You work as a senior developer at ABC.com. The ABC.com network consists of a single domain
named ABC.com.
You are running a training exercise for junior developers. You are currently discussing the reason
for adding the lockObject private object to a class.

Which of the following best describes this reason?

You work as a senior developer at ABC.com. The ABC.com network consists of a single domain
named ABC.com.
You are running a training exercise for junior developers. You are currently discussing the reason
for adding the lockObject private object to a class.

Which of the following best describes this reason?

A.
To allow multiple threads access to the object.

B.
To allow only a single thread access to the object at a time.

C.
To make sure that when a single thread attempts to access the object, a deadlock occurs.

D.
To prevent any thread from accessing the object.

Explanation:



Leave a Reply 3

Your email address will not be published. Required fields are marked *