Thread.Sleep (0) will give up purchased CPU resource?
2 answers
Yes. The thread must be suspended for this loop, allowing other threads to access the CPU. The code will be immediately scheduled for the next cycle.
The thread will continue to process the next scheduled processor slot on it in a multi-threaded environment.
Thread.Sleep (-1) pauses the thread indefinitely.
+6
source to share