Is System V.4 fork reliable?

John F. Haugh II jfh at rpp386.cactus.org
Wed Aug 8 14:01:27 AEST 1990


In article <553 at bohra.cpg.oz> als at bohra.cpg.oz (Anthony Shipman) writes:
>A standard simple "naive" solution to break the deadlock is to kill one of the
>processes at the request point. In this case, make the fork() fail. If several
>retries fail then abort the program (and release memory). An indefinite wait
>would be dangerous.

I'm quite pleased to state the AIX V3.1 does not have this same problem
which AT&T has decided to introduce.  Not only does their fork() not fail
for transient shortages of real memory, but it has the added complexity
of working in an environment where almost all system calls are pre-emptable,
and frequently =are= pre-empted, page faulted, put to sleep, and a half
dozen other evils.

For more information on the implementation of the AIX kernel, please see
"Enhancements to the AIX Kernel for Support of Real-Time Applications",
by Kathy A. Bohrer and John T. O'Quin, IBM publication SA23-2619.
-- 
John F. Haugh II                             UUCP: ...!cs.utexas.edu!rpp386!jfh
Ma Bell: (512) 832-8832                           Domain: jfh at rpp386.cactus.org



More information about the Comp.unix.wizards mailing list