Sorry Willy - I had misread your post. But I dont recall saying you
should spinwait for 2 seconds? Instead of picking up on my mistakes
maybe you could use your time more productively to give an answer to
Alans initial question
For the benifit of anyone else -
Sleep - will relinquish control of the thread for the number of
milliseconds denoted by the parameter -technicaly it is removed from
consideration by the thread scheduler for that length of time
SpinWait - will effectively lock the current thread into a tight loop
for a specified number of itterations. Generally not recommended and is
only genuinely useful in a small number situations
:-)
Nick
On Nov 27, 2:38 am, "Willy Denoyette [MVP]"
<willy.denoye...@telenet.bewrote:
<nick.fletc...@iinet.net.auwrote in messagenews:11*********************@l12g2000cwl.go oglegroups.com...
I completely agree but lacking any other further information about
exactly what the application does and the context of the wait...Hmm... not sure what you mean here, you know the difference between a Sleep and a SpinWait
do you?
You should never call SpinWait for as long as 2 seconds whatever the context.
Willy.