retagged by
955 views

3 Answers

4 votes
4 votes

Total no. of child process = 2n-1

                                          = 25-1 = 31

and 1 parent process ..

Total processes = 31 + 1 = 32

2 votes
2 votes
for each fork call two processes are created , one is parent and other is child

fork() returns pid which can be negative: unsuccessful

it returns +ve pid (process id of child process) to the parent process and pid=0 to the newly created child process.
0 votes
0 votes
Find total no. Of child is 2^n-1

then 2^5-1=31

And one parent process also add

That's why answer is 31+1=32

Related questions

0 votes
0 votes
0 answers
1
3 votes
3 votes
1 answer
4