Announcement

Collapse
No announcement yet.

DOS application which will run in XP OK

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • DOS application which will run in XP OK

    I have to freshen up an old app (not written in BASIC!) which I want to run under DOS and XP. Currently the app works around a loop which checks the keyboard, comm ports, clock, etc and does a nice job - when run under MSDOS. Under XP, it hogs CPU because of this loop. Just wondering what is the optimal method with PBDOS for avoiding this scenario, as I'm considering a rewite in PB for DOS. The dead same code would have to run in MSDOS/DRDOS or as an XP console application.


    ------------------

  • #2
    are you looking for a sleep or idle replacement?
    Code:
    if answer = yes then
      [url="http://www.powerbasic.com/support/pbforums/showthread.php?t=1447"]http://www.powerbasic.com/support/pbforums/showthread.php?t=1447[/url] 
    else 
       'might help
       [url="http://www.powerbasic.com/support/pbforums/showthread.php?t=280"]http://www.powerbasic.com/support/pbforums/showthread.php?t=280[/url] 
    end if
    ------------------


    [this message has been edited by mike doty (edited april 13, 2006).]

    Comment


    • #3
      Set the priority a bit lower?

      ------------------

      Comment


      • #4
        Originally posted by David J Walker:
        Set the priority a bit lower?

        Thanks for the thought, I tried both lower settings. The "below normal" setting slightly increased the CPU, "low" reduced it from ~90% to ~85%.

        ------------------

        Comment


        • #5
          curious if this solves the problem? http://www.powerbasic.com/support/pb...ead.php?t=1447

          ------------------

          Comment


          • #6
            originally posted by mike doty:
            curious if this solves the problem? http://www.powerbasic.com/support/pb...ead.php?t=1447 http://www.powerbasic.com/support/pb...read.php?t=604


            ------------------

            Comment

            Working...
            X