Question:You are creating a multithreaded application. You create an instance of PerformanceCounter named pc that might be referenced from multiple threads simultaneously. Which of the following calls is thread-safe? (Choose all that apply.)
 

A pc.RawValue = pc.RawValue + 32 

B pc.Increment() 

C pc.Decrement() 

D pc.Increment(12) 

+ Answer
+ Report
Total Preview: 1206

Copyright © 2024. Powered by Intellect Software Ltd