troubleshooting Question

Thread safety question

Avatar of bartdsp
bartdspFlag for United States of America asked on
Microsoft Development
2 Comments1 Solution207 ViewsLast Modified:

In a 2010 project I have several backgroundwoker objects (drag and dropped on form). Each runs a continuous loop doing various tasks. Each loop contains several calls to a kernal dll: QueryPerformanceCounter. The loops repeat about every 10 ms.

Even though the code "appears" to run as expected, I am wondering if there are any thread safety issues with multiple background workers calling the same dll function?

Join our community to see this answer!
Unlock 1 Answer and 2 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros