Re: Thread Priority



"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


.