Mail Archives: djgpp/1997/01/05/17:08:43
Greetings,
I'm prototyping an embedded system on a PC with DJGPP, and encountering the
following problem. I'll appreciate if somebody has a clue:
I'm writing an history log into a file, using write(). I noticed (well - it
wasn't very hard to notice...) that the system hungs from time to time
during those write()s - sometimes for up to three seconds. Not the
best way to control running engines..
We've concluded that some internal DOS buffer was filled, and DOS
is dumping it onto our very slow FLASH disk. We tried using
_flush_disk_cache() on convenient times. This reduces the frequency
of the problem, but DOS still feels free to stop everything from time
to time to perform the I/O.
Can I control this behaviour? should I do things differently?
Or is our explanation totally wrong?
Thanks
Ronen
----------------------------------
Ronen Friedman
ronen AT friendly DOT co DOT il
- Raw text -