Re: threading question
- From: "amdrit" <amdrit@xxxxxxxxxxx>
- Date: Wed, 5 Mar 2008 13:40:01 -0600
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
.
- Follow-Ups:
- Re: threading question
- From: Analizer1
- Re: threading question
- References:
- threading question
- From: Analizer1
- threading question
- Prev by Date: Re: Instantiating an struct defined as DNVSRISKMDECORE!STRUCT1
- Next by Date: vs.net find help, how to search for all lines that contain 2 strings using regex?
- Previous by thread: Re: threading question
- Next by thread: Re: threading question
- Index(es):