Article View: comp.os.msdos.programmer
Article #2249Re: fork() under MS/DOS?
From: RAMontante
Date: Sat, 15 Sep 1990 13:33
Date: Sat, 15 Sep 1990 13:33
12 lines
1049 bytes
1049 bytes
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.
Technical Details
Message-ID:
<58769@iuvax.cs.indiana.edu>Path:
arc1-ca.pugleaf.net!utzoo!attcan!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!cica!iuvax!bobmonShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!cica!iuvax!bobmon From: bobmon@iuvax.cs.indiana.edu (RAMontante) Newsgroups: comp.os.msdos.programmer Subject: Re: fork() under MS/DOS? Keywords: Turbo C, fork(), multitasking, MS/DOS Message-ID: <58769@iuvax.cs.indiana.edu> Date: 15 Sep 90 13:33:05 GMT Organization: malkaryotic Lines: 12