Results 1 to 10 of 12

Thread: How to delay without polling?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #11
    I am replying now because I didn't hava much free time. I didn't tackled the problem. However, I remember, but it doesn't mean that I know much as I am not that expert in programming, that in the old days of dos one could set registers in the cpu and have an interruption; instead of running a continuous ask to a timer if the time has passed, the cpu itself triggered the event you want.

    @SilverWarior, thanks for the revert! Also, the method you described, uses sleep; try a simple loop of incrementing an integer, and try to use sleep(1) and no sleep. Also display that integer per 1000 or 10000 or 100000 increments and see both the frequency of the output and the task manager.
    Last edited by nerduke; 18-07-2022 at 05:06 PM.

Tags for this Thread


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts