Re: How do I Sleep for a specified amount of time and relinquish c
- From: "Peter Duniho" <NpOeStPeAdM@xxxxxxxxxxxxxxxx>
- Date: Thu, 16 Nov 2006 23:48:15 -0800
"nickdu" <nicknospamdu@xxxxxxxxxxxxxxxx> wrote in message
news:2D22EF5C-0EA0-4E24-8523-305922CB286D@xxxxxxxxxxxxxxxx
From reading the docs I'm remember it saying something about continuing to
use the thread's quanta.
From reading which docs? It just makes no sense that any version of Sleep()would in fact do a spin wait until the timeslice is up. The moment you call
Sleep() (.NET or Windows API) with a non-zero value, that thread should be
suspended (and most of the time even with zero passed to it). I have a hard
time believing you've seen any official documentation that says otherwise.
The fact that using the wait-on-an-event method instead changes the behavior
doesn't prove that Sleep() was using up the timeslice. It just means it
does something different that changed the behavior.
Pete
.
- References:
- Re: How do I Sleep for a specified amount of time and relinquish contr
- From: Michael Nemtsev
- Re: How do I Sleep for a specified amount of time and relinquish c
- From: Michael Nemtsev
- Re: How do I Sleep for a specified amount of time and relinquish c
- From: Peter Duniho
- Re: How do I Sleep for a specified amount of time and relinquish c
- From: nickdu
- Re: How do I Sleep for a specified amount of time and relinquish contr
- Prev by Date: RE: .Net 3.0 Administrative Setup
- Next by Date: Re: How do I Sleep for a specified amount of time and relinquish c
- Previous by thread: Re: How do I Sleep for a specified amount of time and relinquish c
- Next by thread: Re: How do I Sleep for a specified amount of time and relinquish c
- Index(es):
Relevant Pages
|