Question: All are C# related: 1: Which statement is true? Select the one correct answer. Then, explain your reasoning to justify your choice. No two threads
All are C# related:
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.
2: How can the priority of a thread be set? What is the effect(s) of changing a threads priority?
3: There are at least four plausible reasons why a thread might be alive but still not be running. What are these reasons? What can be done about a live non-running thread? For example, can such threads be detected?
4: What events can cause a thread to die? Are there ways to guarantee that a thread eventually will die?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
