how many processes will gate created execution of
--------
fork();
fork();
fork();
--------
Please Explain...
Thanks in advance..!

Answer Posted / abhinav

The process creation at each fork is shown. the number after
fork tells which process is calling fork.
Total 8 processes.

/--1
/---fork1
/ \--5
/-fork1-
/ \ /--3
/ \---fork3
---fork1 \--6
\
| /--2
\ /--fork2--
\ / \--7
\fork2--
\ /--4
\--fork4--
\--8

Is This Answer Correct ?    12 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you verify if the two sentences/phrases input is an anagram using predefined functions in string.h and by using arrays?

2032


how to test pierrot divisor

2274


why do you use macros? Explain a situation where you had to incorporate macros in your proc report? use a simple instream data example with code ?

2273


What is the difference between proc means and proc tabulate ? explain with a simple example when you have to use means or tabulate?

3722


What is data _null_? ,Explain with code when u need to use it in data step programming ?

2834






Given a spherical surface, write bump-mapping procedure to generate the bumpy surface of an orange

2874


why nlogn is the lower limit of any sort algorithm?

2389


how to create a 3x3 two dimensional array that will give you the sums on the left and bottom columns

3138


What is the match merge ? compare data step match merge with proc sql merge - how many types are there ? data step vs proc sql

2423


What is full form of PEPSI

1889


Set up procedure for generating a wire frame display of a polyhedron with the hidden edges of the object drawn with dashed lines

3041


Cluster head selection in Wireless Sensor Network using C programming language.

3129


how to programme using switch statements and fuctions, a programme that will output two even numbers, two odd numbers and two prime numbers of the users chioce.

2151


Write a routine to implement the polymarker function

4399


Develop a routine to reflect an object about an arbitrarily selected plane

3014