in Operating System
449 views
0 votes
0 votes

In the UNIX environment what happens in the following three cases as shown in Fig. 1.

in Operating System
by
449 views

1 Answer

1 vote
1 vote
Best answer

Figure (1.a): The wait() system call blocks the caller until one of its child processes terminates. If the caller doesn’t have any child processes, wait returns immediately without blocking the caller. Using wait the parent can obtain the exit status of the terminated child.

Figure (1.b):  The parent process creates a child process and waits until the child finishes its execution.

Figure (1.c):  The parent process creates a child and starts executing concurrently with its children. UNIX uses vfork() function to do this job.

 

Reference: http://www.it.uu.se/education/course/homepage/os/vt18/module-2/process-management/

selected by

1 comment

Thank you so much
1
1

Related questions

3 votes
3 votes
1 answer
2