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