Re: Thread Priority
- From: "Maarten Wiltink" <maarten@xxxxxxxxxxxxxxxxxx>
- Date: Fri, 27 Jun 2008 18:04:23 +0200
"Kevin Urben" <me@xxxxxxxxxxxx> wrote in message
news:02bb138f$0$8007$c3e8da3@xxxxxxxxxxxxxxxxxxxx
"Kevin Urben" <me@xxxxxxxxxxxx> wrote in message
news:02bb100d$0$8028$c3e8da3@xxxxxxxxxxxxxxxxxxxx
I am running a thread to monitor the state of an I/O line on a
NI PCI 6503 Digital I/O board.
Ah - it's that Sleep() function again !
Calling Sleep(20) in the polling loop calms everything down !
And I can still respond to a pulse >20ms on the I/O line.
Is that the recommended way ? Seems to work fine ...
Yes. In a thread, calling Sleep is the right way.
Groetjes,
Maarten Wiltink
.
- Follow-Ups:
- Re: Thread Priority
- From: Kevin Urben
- Re: Thread Priority
- References:
- Thread Priority
- From: Kevin Urben
- Re: Thread Priority
- From: Kevin Urben
- Thread Priority
- Prev by Date: Re: Thread Priority
- Next by Date: Re: Thread Priority
- Previous by thread: Re: Thread Priority
- Next by thread: Re: Thread Priority
- Index(es):