You are adding a public method named UpdateScore to a public class named ScoreCard.
The code region that updates the score field must meet the following requirements:
✑ It must be accessed by only one thread at a time.
It must not be vulnerable to a deadlock situation.
You need to implement the UpdateScore() method.
What should you do?
dakuan
5 years, 9 months agoIgris
5 years, 7 months ago