🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: fork() under MS/DOS?

#2270
From: Ralf Brown
Date: Tue, 18 Sep 1990 01:10
20 lines
1574 bytes
In article <1990Sep17.190834.21412@Octopus.COM> stever@octopus.UUCP (Steve Resnick ) writes:
}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.)

Well...  Under DESQview, a program can create a new task which shares the
same address space (code & data) but with a different stack.  Unfortunately,
you can't then do an EXEC without clobbering both tasks....  The main use of
this capability is to create multiple threads (for those who are intensely
curious, the demo program in DV-GLUE fires up two subthreads--on SIMTEL
in PD1:<MSDOS.DESQVIEW>DVGLU*.ARC).



-- 
{backbone}!cs.cmu.edu!ralf  ARPA: RALF@CS.CMU.EDU   FIDO: Ralf Brown 1:129/3.1
BITnet: RALF%CS.CMU.EDU@CMUCCVMA   AT&Tnet: (412)268-3053 (school)   FAX: ask
DISCLAIMER?  Did  | Everything is funny as long as it is happening to
I claim something?| someone else.  --Will Rogers
Technical Details
Message-ID: <10494@pt.cs.cmu.edu>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!know!samsung!cs.utexas.edu!tut.cis.ohio-state.edu!pt.cs.cmu.edu!b.gp.cs.cmu.edu!ralf
References: <58769@iuvax.cs.indiana.edu> <1990Sep17.190834.21412@Octopus.COM>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!know!samsung!cs.utexas.edu!tut.cis.ohio-state.edu!pt.cs.cmu.edu!b.gp.cs.cmu.edu!ralf
From: ralf@b.gp.cs.cmu.edu (Ralf Brown)
Newsgroups: comp.os.msdos.programmer
Subject: Re: fork() under MS/DOS?
Keywords: Turbo C, fork(), multitasking, MS/DOS
Message-ID: <10494@pt.cs.cmu.edu>
Date: 18 Sep 90 01:10:04 GMT
References: <58769@iuvax.cs.indiana.edu> <1990Sep17.190834.21412@Octopus.COM>
Organization: Carnegie-Mellon University, CS/RI
Lines: 20