possible race condition?
Alex Martelli
alex at am.sublink.org
Sat May 11 17:36:48 AEST 1991
ronald at robobar.co.uk (Ronald S H Khoo) writes:
...
:Part of the System V interface definition apparently guarantees the
:child to execute before the parent, I hear -- I'd like chapter and
:verse from someone who has a copy, if that's not too much trouble.
Does not look that way to me - SVID 2, p.86, under fork(ba_os), says
"both processes will run as system resources become available".
:So, in principle, yes, you're right, but the code works correctly
:on "real" System V.
It's possibly that way depending on how it is *implemented*, but it
does not seem to me that you get any guarantee from the interface
*specification*.
--
Alex Martelli - (home snailmail:) v. Barontini 27, 40138 Bologna, ITALIA
Email: (work:) martelli at cadlab.sublink.org, (home:) alex at am.sublink.org
Phone: (work:) ++39 (51) 371099, (home:) ++39 (51) 250434;
Fax: ++39 (51) 366964 (work only), Fidonet: 332/401.3 (home only).
More information about the Comp.unix.programmer
mailing list