Re: wait for process terminate
From: Rob Kennedy (me3_at_privacy.net)
Date: 10/11/04
- Next message: Allan: "Ann: Delphi Central website has moved"
- Previous message: AlanGLLoyd: "Re: Reading serial port lines"
- In reply to: Maarten Wiltink: "Re: wait for process terminate"
- Next in thread: L D Blake: "Re: wait for process terminate"
- Reply:(deleted message) L D Blake: "Re: wait for process terminate"
- Reply: Martin Harvey (Demon account): "Re: wait for process terminate"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 11 Oct 2004 15:49:07 -0500
Maarten Wiltink wrote:
> "David Reeve" <dree4456@big-pond.net.au> wrote in message
> news:fTwad.22406$5O5.10922@news-server.bigpond.net.au...
>> Either way, the time slice should be yielded.
>
> Yes, but not at once. Only at the end of its nap. In fact, I'm not sure
> if Sleep() does or should in fact release the timeslice for delays
> other than zero.
The only time Sleep does not release its timeslice is when its argument
is 0 and there are no other qualifying threads waiting to be scheduled.
With a non-zero timeout, Sleep will release its timeslice, and it will
not be awarded another timeslice until at least that many milliseconds
have elapsed. If there are no other qualifying threads in the meantime,
then I don't know what happens, but that's for the OS to determine.
-- Rob
- Next message: Allan: "Ann: Delphi Central website has moved"
- Previous message: AlanGLLoyd: "Re: Reading serial port lines"
- In reply to: Maarten Wiltink: "Re: wait for process terminate"
- Next in thread: L D Blake: "Re: wait for process terminate"
- Reply:(deleted message) L D Blake: "Re: wait for process terminate"
- Reply: Martin Harvey (Demon account): "Re: wait for process terminate"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|