📅  最后修改于: 2022-03-11 14:44:45.255000             🧑  作者: Mango
int counter = 0;
int main()
{
int i;
for (i = 0; i < 2; i ++){
fork();
counter++;
printf("counter = %d\n", counter);
}
printf("counter = %d\n", counter);
return 0;
}