Linux -Blue forest free software | Return to home page | Site Map | Search WWW | Contact Us |
Your current position : Homepage > Free Software > Technological exchanges >Application Programming


    

Blue Forest http://www.lslnet.com at 10:18 on June 6, 2006


Fork? Like his father do not understand why the value of the return process, help us to see Thank you

#include "String.h>
#include "Stdio.h>
#include "Sys/types.h>
#include "Unistd.h>

Int glob = 6
Int main () (
Int var;
Pid_t pid;
Var =88;
   
If ((pid=fork () "0))
Printf ( "fork error");
Else if (pid==0) (
Glob++;
Var++;
}else{
Sleep (2);
    }
Printf ( "pid=%d, glob=%d, var=%d\n", getpid (), glob, var);
}

Executive Outcomes, and on how serious the same way that
[lgl@jlu Work]$ gcc -o 8 8.01.c
[lgl@jlu Work]$. /8
Pid=29459, glob=7, var=89
Pid=29458, glob=7, var=89
[lgl@jlu Work]$


Xxx


Sorry, I made a mistake in front of you

If ((pid=fork () "0))

Wrong

Win_hate reply to the message, 2nd Floor

Oh sorry not to pay attention to this ~~~~~

Look at this? Really do not know
Pid=fork ();
If ((pid<0))
{
Printf ( "fork error");
}
Else if (pid==0) (
Glob++;
Var++;
}
Else{
Sleep (2);
    }

Oh Thank you something right upstairs Treasury
I misplacement of the brackets
Be if ((pid=fork ()) "0) reads
Written in the above if ((pid=fork () "0))

I have missed so

Ha ha. . . Many people must commit such illnesses

House redog reply to the message

Oh did not expect so much out of the country.

Whenever C said there is no design flaws and LEAVES OF 13 SPECIES OF LAURACEAE no mention of this, but wanted to be able to see that no one ====== # idealized said, nor did they want to.

Halo, what went wrong and apologize. . .



 Privacy Policy  Copyright © 1999-2000 LSLNET.COM. All rights reserved. Blue Forest website owners. E-mail : Webmaster@lslnet.com