单选题:Suppose that a thread is executing “counter=counter+1” while an
Suppose that a thread is executing “counter=counter+1” while another thread is executing concurrently and independently “counter=counter-1”, where the counter is a variable shared between the two threads. Given that the value of counter is 10 before execution, the possible value(s) after both threads finish their statement are _____ .@[D](1)
A. 9
B. 10
C. 11
D. All of above
A.9
B.10
C.11
D.All of above
答案:D
A. 9
B. 10
C. 11
D. All of above
A.9
B.10
C.11
D.All of above
答案:D