Mail Archives: djgpp/2001/06/15/19:45:17.1
Thu, 14 Jun 2001, Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> wrote:
>> >> So, Win9x DOS box is the best environment for DJGPP, isn't it?
>> EZ> It depends. For some uses, plain DOS with CWSDPMI is better.
>> Which DOS is better? Is it MS-DOS, PC-DOS, some other DOS?
EZ> What's the difference between these two?
I think at least undocumented features are different ;).
>> EZ> If timeouts are the issue, you could use `alarm' or `setitimer' for a
>> EZ> much better and more portable code.
>> No, I can't use setitimer() with djgpp because setitimer() uses
>> uclock() which doesn't works properly under win9x, when program is in
>> background mode.
EZ> uclock does work on Windows, both in fore- and background programs.
Yes, it works. I've muddle together uclock() with usleep() :).
EZ> It's the timer tick interrupts that break setitimer in background:
EZ> Windows almost stops delivering interrupts to such a program.
So, stupid loop with time() works and setitimer()/alarm() don't...
- Raw text -