Re: Better polling solution in wince driver

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



shiju <mshiju@xxxxxxxxx> wrote in news:4581BBB5.1090906@xxxxxxxxx:

Hi,
I am new to wince and was just worried whether the Sleep()
function would affect the performance of the system. Is this the
only way to implement polling in wince 5.0 drivers.

It's the polling, not Sleep that can impact system performances.
But since you have no ways to avoid it, keep it very simple and very
fast. For example if you have an I2C controller that can generate
interrupts, use them and do not poll the I2C controller status using a
busy loop. In this way the CPU could be used by other thread while
you're sending/receiving data on your I2C device and the impact of your
polling will be reduced.

--
Valter Minute
(the reply address of this message is invalid)
(l'indirizzo di reply di questo messaggio non è valido)
.



Relevant Pages

  • Re: Problems with PXA270 suspend mode
    ... WinCE, but I don't know, that the processor starts on address 0 after sleep. ... +RDR:NetDownIndication, lana: 2 ...
    (microsoft.public.windowsce.embedded)
  • Re: Better polling solution in wince driver
    ... I am new to wince and was just worried whether the Sleep() function would ... polling in wince 5.0 drivers. ... Henrik Viklund wrote: ...
    (microsoft.public.windowsce.platbuilder)
  • Go to Sleep
    ... clearly you can't provide an alterative to polling that does ... Whether or not sleep is significantly slower, ... All synchronization is done by these delay calls. ... yesteryear that used a delay loop for timing (which broke ...
    (alt.lang.asm)
  • Re: Thread scheduling
    ... Does this block until the data is available or is it polling for something? ... understand why you're calling Sleep. ... In your data processing thread, you need to tell us what the second ... It won't delay *exactly* the sleep time. ...
    (microsoft.public.windowsce.embedded)
  • Re: Better polling solution in wince driver
    ... I can't really see what the problem is running a 25Hz polling cycle ... Henrik Viklund wrote: ... The answer to my question was to use Sleep() ... So I implemented this in my driver by creatiing a thread. ...
    (microsoft.public.windowsce.platbuilder)