Mail Archives: djgpp/2000/02/09/05:41:15
On Tue, 8 Feb 2000 arcadepreserv AT hotmail DOT com wrote:
> Thanks for your answers. On the not possible in DOS though,
> it would be possible to have a starter program that runs a
>
> popen(gets.exe|backend.exe)
>
> where gets.c is something like
>
> char *s;
> while (1)
> gets(s);
Yes, this is possible.
> It seams that the non multitasking in DOS can be overridden, at least
> some ?
No. What happens is that "gets" runs first and creates a temporary
file. "backend" is not run until "gets" exit, at which point it reads
what "gets" wrote from the temporary file. And your launcher program,
the one which called `popen', waits until "backend" exits, and then
reads its output from another temporary file.
So the programs all run one after the other, and there's still no
multitasking.
- Raw text -