Multiple Choice
Under what conditions are locks unnecessary for multi-threaded programs?
A) When the threads are all of the same class.
B) When the threads are different classes.
C) When the threads do not share data.
D) When the shared data only has a single method.
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q20: The _ method stops the current thread
Q22: If a thread sleeps after acquiring a
Q24: What course of action should be followed
Q25: Suppose thread one is downloading a large
Q26: Which of the following scenarios may not
Q29: Exactly when does a thread finish in
Q31: Given a single CPU and four threads,
Q32: Examine the SharedData class shown below. Suppose
Q33: Suppose thread one is downloading a 800KB
Q62: Each thread runs for a short amount