SVVS user/system time tests

Jim Frost madd at bu-cs.BU.EDU
Sun Jun 12 06:08:32 AEST 1988


In article <55906 at sun.uucp> guy at gorodish.Sun.COM (Guy Harris) writes:
|> In the file exec1.c, there are messages indicating that the child process
|> did not inherit the system and user times of its parent. However, the test
|> actually only checks to see that the times are NON-ZERO. This appears to
|> have been the sticking point for Apollo since our system time was always 0.
|
|In this case, they should test whether the *sum* of user+system time is
|non-zero.

Even this strikes me as bogus.  It should check to see if the times
for the child are more than or equal to those of the parent.  I see no
reason why a sufficiently fast machine might not be able to execute
the test in less time than one clock tick, making it fail the actual
test and the one you propose.  Of course, I can imagine cases where my
idea is inaccurate as well, but you get the idea.

jim frost
madd at bu-it.bu.edu



More information about the Comp.unix.wizards mailing list