Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Releasing CPU to Desqview/Windows 1

Status
Not open for further replies.

phillip

Programmer
Mar 29, 2000
2
US
I'm writing some QBasic (actually VB 1.0 for ms-dos, its nearly the same as Qbasic) software, which polls a directory for a file every 10 seconds for processing.

Currently, the program eats up too much CPU power when it's running in it's timer loop, and I'm wondering if there's some sort of routine I can run or a flag or interrupt of some sort I can set to indicate to the operating system that it may process other tasks, since all it's doing is waiting.

Desqview has some assembly routines in an appendix to the manual, but I've attempted to implement those ASM routines in VBDOS and have been unsuccessful. Also that doesn't help me under a Win32 environment.

Any ideas?
 
try the following site:


go down about half way and you'll see a section entitled "DV-GLUE" or something like that.

That should be able to provide you with some references if not some routines you could probably use.
 
There was some software on the site that should do just fine!

DVPtame allows modification of the DVP files to limit the number of times the program may poll the keyboard before DV forcibly releases the CPU from that program. Perfect!

Thank you! :)

 
Glad to hear it. ::) Hope it all works out for you!

--MiggyD
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top