This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <unistd.h> | |
int globalVraiable ; | |
int main() { | |
pid_t ChildID; | |
int localVraiable =0 ; | |
ChildID = fork(); // check for Fork | |
if (ChildID >= 0) // fork sucess | |
{ | |
if (ChildID == 0) // Code Of Child which the value will be 0 in |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <unistd.h> | |
int main() { | |
pid_t ChildID; | |
ChildID = fork(); // check for Fork | |
if (ChildID >= 0) // fork sucess | |
{ | |
if (ChildID == 0) // Code Of Child which the value will be 0 in | |
// case of Child code | |
{ |
NewerOlder