Re: The revelation of St. f0dder the Divine



Beth wrote:

You've shown before that you don't entirely grasp how the "priority"
scheduling scheme in Windows works, hutch...and you're doing it again,
it seems...

It's my understanding that Hutch knows perfectly well that a polling loop is a very "inconsiderate" thing to do in a multi-tasking OS. But the blocking alternative crashes on certain hardware/version combinations. (I guess there's some question if this is true or not, but that's why Hutch does it that way... I understand)


The polling loop isn't getting 100% CPU time because there's a "sleep" in the loop. (again, some controversy whether it should be "sleep 0" or "sleep 1", I guess...)

Being a fairly deviant antique myself, I'm running a k6-300 (no -2), and can (if I must) boot Win98 (no se, I don't think). If that combination would reliably demonstrate the problem, perhaps I could check it out (haven't tried it). If some workaround for this bug could be found *other* than a polling loop, that would be "better", IMHO, but perhaps there isn't one...

If the "blocking" alternative fails because of a bug, what would *you* do?

Best,
Frank
.



Relevant Pages

  • cant get out of infinite while loop
    ... To get into the infinite loop, I write to a file the "on" status ... writing switch on ... ready to sleep for 10 seconds ... or die "Problem passing files to the bridge directory...$!"; ...
    (comp.lang.perl.misc)
  • Re: question about thread scheduling
    ... I doubt you will need to mess with the system tick to get what ... I will try what you suggested, the reason that I didn't use the sleep ... If the NN run in a different thread as the control loop ... Sleepputs your thread to sleep for 3 timer ticks and ...
    (microsoft.public.windowsce.platbuilder)
  • Re: question about thread scheduling
    ... I will try what you suggested, the reason that I didn't use the sleep method ... If the NN run in a different thread as the control loop ... Sleepputs your thread to sleep for 3 timer ticks and ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Event loop and sleep()
    ... The purpose of sleep() was to wake up at some interval, ... > if there is anything to process from sockets, ... Removing the sleepfrom the loop causes ... As someone suggested, the message queue ...
    (comp.lang.cpp)
  • Re: question about thread scheduling
    ... I will try what you suggested, the reason that I didn't use the sleep method ... whatsoever to tamper with the timer tick. ... If the NN run in a different thread as the control loop ...
    (microsoft.public.windowsce.platbuilder)