closed by
915 views
1 votes
1 votes
closed as a duplicate of: fork() system call
#include <stdio.h>
#include <unistd.h>
int main()
{
fork();
fork() && fork() || fork();
fork();

printf("forked\n");
return 0;
}

 

//How this works specially the level 2 fork() // with && ||
closed by

Related questions

0 votes
0 votes
2 answers
2
Sourin Kundu asked Jan 24, 2023
413 views
A process executes the following segment of code: int main(){fork();fork() && fork();}The number of new processes created is
0 votes
0 votes
1 answer
3
aditi19 asked May 26, 2019
512 views
Which part of the process image forms the logical address space that is used in paging?