Answer by Daniel Mošmondor for Sleep(10) does nothing?
Thank you for all the answers provided, but I'll try to provide one of my own.I don't need architecture change at this point, and any attempts to use any amount of Sleep() failed. I searched a little...
View ArticleAnswer by Remus Rusanu for Sleep(10) does nothing?
Don't sleep. Set your thread priority to IDLE instead.Next thing is to identify the CPU consumption per process, so you don't chase a red herring. Open the Perfmom.exe and look at the Process(*)\(*)...
View ArticleAnswer by Jon Hanna for Sleep(10) does nothing?
get spikes like that when I log onto RDP, and I don't have your code running. Occam's razor would suggest it's RDP that's making use of the cores.Besides, if you're doing File.Exists, the thread's...
View ArticleAnswer by JMarsch for Sleep(10) does nothing?
Sleep 10 is only 10 milliseconds -- so you are really close to just yielding and going back to work. My guess would be that when you are logged on, there is enough going on that your thread doesn't get...
View ArticleSleep(10) does nothing?
I have a strange situation with my web service.It is a simple one - it creates a Thread that runs constantly, doing some disk checks in the background, and for every File.Exists that it performs, it...
View Article
More Pages to Explore .....