fork/exec

Henry Spencer henry at utzoo.uucp
Tue Aug 15 11:26:07 AEST 1989


In article <5672 at ficc.uu.net> peter at ficc.uu.net (Peter da Silva) writes:
>Hmmm. Does POSIX specify that fork() is the process-creation mechanism?

Yes.

>... while the fork()-exec() pair is singularly elegant, it's not
>implementable (without a massive number of kludges) in a wide variety of
>operating systems: OS/9, VMS, RSX, AmigaOS...

The technical term for this is "tough luck".  POSIX is a *Unix* standard.
The inability of defective operating systems to emulate it was (a) well
known, and (b) not a consideration.

On the hardware used by VMS and RSX, it is verifiably possible to implement
fork(), since Unix runs on those machines.  The same is probably true of
the Amiga, given that the Amigoids assure us that the Amiga is superior
to the Atari ST in every way :-), and Minix does fork() just fine on the ST.
Dunno about OS/9, although given how much help Minix gets from the ST on
fork() -- none -- it ought to be practical on 6809s as well, given enough
memory.  So doing fork() for the "operating systems" you name is just a 
Small Matter Of Programming for their maintainers.

(That chortling sound you hear is all the Unix old-timers watching the
frantic scramble for Unix compatibility by all the people who spent
years sneering at Unix.  Nyah nyah, we told you so!  :-) :-) :-))
-- 
V7 /bin/mail source: 554 lines.|     Henry Spencer at U of Toronto Zoology
1989 X.400 specs: 2200+ pages. | uunet!attcan!utzoo!henry henry at zoo.toronto.edu



More information about the Comp.std.c mailing list