Question: C# question. 1.Which statement is true? Select the one correct answer. Then, explain your reasoning to justify your choice. -No two threads can concurrently execute
C# question.
1.Which statement is true? Select the one correct answer. Then, explain your reasoning to justify your choice.
-No two threads can concurrently execute synchronized methods on the same object.
-Methods declared synchronized should not be recursive, since the object lock will not allow new invocations of the method.
-Synchronized methods can only call other synchronized methods directly.
-Inside a synchronized method, one can assume that no other threads are currently executing any other methods in the same class.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
