🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #2261

Re: fork() under MS/DOS?

#2261
From: Steve Resnick
Date: Mon, 17 Sep 1990 19:08
28 lines
1795 bytes
In article <58769@iuvax.cs.indiana.edu> bobmon@iuvax.cs.indiana.edu (RAMontante) writes:
>
>You should investigate the "spawn...()" family of functions in Turbo C.
>(Also the "system()" function.)  These functions spawn a child process,
>and resume the parent upon the child's completion.
>
>You can't really create "fork()" semantics for MS-DOS, since it's
>single-tasking.  I think that as close as you could come, you can do
>already with "spawn...()".  Fork() might be more meaningful in a
>multitasking environment such as Desqview or Windows gives you (isn't
>Windows a multitasker now?), but that isn't really "under MS-DOS" as
>the parent or child would have to know how to open another window to
>run in.

In DESQview a fork which works like the UNIX fork would not be possible. 
In windows I don't think so either, but I may be wrong. It is possible in
both environments to start up copies of the same program, but not duplicate
the same process (which, I believe, is what fork() does.)

Just another side note... :)
Steve
.

-- 
----------------------------------------------------------------------------
steve.resnick@f105.n143.z1@FIDONET.ORG #include<std_disclaimer.h>
Flames, grammar errors, spelling errrors >/dev/nul
----------------------------------------------------------------------------
Technical Details
Message-ID: <1990Sep17.190834.21412@Octopus.COM>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!decwrl!apple!vsi1!octopus!stever
References: <58769@iuvax.cs.indiana.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!decwrl!apple!vsi1!octopus!stever
From: stever@Octopus.COM (Steve Resnick )
Newsgroups: comp.os.msdos.programmer
Subject: Re: fork() under MS/DOS?
Keywords: Turbo C, fork(), multitasking, MS/DOS
Message-ID: <1990Sep17.190834.21412@Octopus.COM>
Date: 17 Sep 90 19:08:34 GMT
References: <58769@iuvax.cs.indiana.edu>
Reply-To: stever@octopus.UUCP (Steve Resnick )
Organization: Octopus Enterprises, Cupertino CA
Lines: 28