Search results for fork

12 votes
4 answers
2
Which one or more of the following options guarantee that a computer system will transition from user mode to kernel mode?Function Callmalloc CallPage FaultSystem Call
29 votes
3 answers
3
A process executes the following codefor(i=0; i<n; i++) fork();The total number of child processes created is$n$$2^n-1$$2^n$$2^{n+1} - 1$
34 votes
4 answers
4
A process executes the codefork(); fork(); fork();The total number of child processes created is$3$$4$$7$$8$
24 votes
8 answers
6
15 votes
5 answers
8
Wha is the output of the following program?main() { int a = 10; if(fork()) == 0)) a++; printf("%d\n",a); }10 and 11101111 and 11
0 votes
3 answers
10
2 votes
3 answers
11
Int main (){fork();printf("a");fork();printf("b");return 0;}How many distinct outputs are possible of above code? And also give outputs
3 votes
1 answer
12
Consider the following code segment :int main (void) { for (int i=2; i<=5; i++) { fork( ); }printf (“GOCLASSES”);How many times “GOCLASSES” is printed by the ab...
1 votes
2 answers
15
For following code how many times the '*' will printed?main(){ int i,n ; for(i = 1 ; i<=n ; ++i) { fork(); printf("*"); }}
3 votes
2 answers
19
A process executes the following segment of code :for(i = 1; i <= n; i++) fork (); fork ();The number of new processes created is
0 votes
1 answer
20