Question: Draw the process hierarchy that results from the code segment given below. Assume that all calls to fork() will be successful. int main() {
Draw the process hierarchy that results from the code segment given below. Assume that all calls to fork() will be successful. int main() { int pid; pid = fork(); if (pid < 0) fork(); else pid = fork(); if (pid > 0) fork(); }
Step by Step Solution
3.43 Rating (156 Votes )
There are 3 Steps involved in it
Based on the given code segment the process hierarchy can be represented as follows The main pro... View full answer
Get step-by-step solutions from verified subject matter experts
