delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/02/09/05:41:15

Date: Wed, 9 Feb 2000 09:00:25 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: arcadepreserv AT hotmail DOT com
cc: djgpp AT delorie DOT com
Subject: Re: How Do I start another DOS program from DJGPP ?
In-Reply-To: <87p46p$e4u$1@nnrp1.deja.com>
Message-ID: <Pine.SUN.3.91.1000209085603.9816F-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
Errors-To: dj-admin AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019