Re: threading question

Tech-Archive recommends: Fix windows errors by optimizing your registry



I think the OP was thinking in the ways of VB6--, that is, if you have a
long running loop, free the processor for other applications to have a whack
at it. Message loops weren't the only reason you used doevents.

Ben's post was right on I think in response. When you have a long running
process play nice with the other processes around you. Either go off the
radar long enough for others to have a whack (Sleep(0)), or sit there
quietly for a while and wait (Sleep(n)).




"Analizer1" <dvs_bis@xxxxxxxxxxxxx> wrote in message
news:dLAzj.12686$5K1.8164@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
is there a alternative to doevents() for threads

In my Case there is no UI


does thread.sleep() yield to windows or just stop the current thread for
the time

tks




.