Re: Clocking proccesses' time

budyanto.himawan_at_gmail.com
Date: 11/29/05


Date: 29 Nov 2005 02:03:43 -0800

Is this snippets of the real code?

pid1 = fork();
if (pid != 0) {/* parent process */

The if condition needs to be checking for pid1 and not pid.



Relevant Pages

  • Re: return of fork()?
    ... me to say fork creates 'a new process'. ... Parent_Process Pid1 ... Parent Child ... "Make grammatical sense" is of course magic thinking. ...
    (comp.os.minix)
  • Re: Clocking proccesses time
    ... pid_t pid1, pid2, pid; ... pid1 = fork(); ... I get shorter time for proccess A than for its children... ... I think that the time for proccess B is right, but i wonder if the next call of getrusage adds c's time over b's. ...
    (comp.lang.c)
  • Re: SAFEARRAY* & COM Interop
    ... public class PID: IPID ... Is the retval a VARIANT* or a SAFEARRAY*? ... lifetime pid1 is valid also. ... Unhandled exception at 0x7c81eb33 in MFCWSTestApp.exe: ...
    (microsoft.public.dotnet.languages.vc)
  • Clocking proccesses time
    ... pid_t pid1, pid2, pid; ... struct rusage ru1, ru2; ... I get shorter time for proccess A than for its children... ...
    (comp.lang.c)
  • Clocking proccesses time
    ... pid_t pid1, pid2, pid; ... struct rusage ru1, ru2; ... I get shorter time for proccess A than for its children... ...
    (comp.unix.programmer)