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?
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?