Re:Learn and use fork(), vfork(), wait() and exec() system c...
by Animats on Wednesday October 30, 2019 @04:01PM
(#21401899)
The fork/exec approach to process launch is a kludge from early PDP-11 UNIX. It's done that way because it had to work when you didn't have enough memory for both program images. Fork originally worked by swapping the process out to disk, then updating the process table so that the in-memory copy and the swapped out copy became separate processes. Most of the troublesome semantics of "fork" come from that history.
[ Parent
| on HN ]
There are no comments on this comment yet.