299 views
0 votes
0 votes
does parent and child perform switching in fork() in os

Please log in or register to answer this question.

Related questions

0 votes
0 votes
1 answer
1
abhinowKatore asked Jan 13, 2023
1,484 views
int doWork(){ fork(); fork(); printf("Hello world!\n");}int main() { doWork(); printf("Hello world!\n"); exit(0);}
1 votes
1 votes
2 answers
3
junaid ahmad asked Jan 1, 2019
1,502 views
int main(void) { int var1=100; int pid; if(pid==fork()) var1=200; fork(); printf("%d",var1); return 0; }what could be the output ?a)100 100 200 200b)200 200 200 200c)none...
1 votes
1 votes
2 answers
4
Warrior asked Nov 10, 2018
1,374 views