Quantcast
Channel: Sleep(10) does nothing? - Stack Overflow
Browsing all 5 articles
Browse latest View live

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 Article



Answer 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 Article

Answer 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 Article

Answer 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 Article

Image may be NSFW.
Clik here to view.

Sleep(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

Browsing all 5 articles
Browse latest View live




Latest Images