performace counter and threads

  • Thread starter Thread starter M R
  • Start date Start date
M

M R

Is it possible for two threads or applications running simultaneously to
update the same performance counters?
thanks
m
 
M R said:
Is it possible for two threads or applications running simultaneously to
update the same performance counters?

From the documentation for System.Diagnostics.PerformanceCounter:

"Thread Safety: This type is safe for multithreaded operations."

So yes, you should be safe updating the same performance counter from
several threads using the PerformanceCounter class.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top