Lock guarantees-deadlock cannot occur


Discuss the below:

Q: State whether each of the following is true or false. If false, explain why.

a) Method sleep does not consume processor time while a thread sleeps.

b) Using a Lock guarantees that deadlock cannot occur.

c) Once a Lock has been obtained by a thread, the Lock object will not allow another thread to obtain the lock until the first thread releases it.

d) Swing components are thread safe.

Tips: https://www.horstmann.com/corejava/cj7v2ch1.pdf

 

Solution Preview :

Prepared by a verified Expert
Operating System: Lock guarantees-deadlock cannot occur
Reference No:- TGS01935392

Now Priced at $20 (50% Discount)

Recommended (90%)

Rated (4.3/5)