Introduction to Computer Systems
Question 1. [4 marks]Consider the execution of the following function (written in the C language).// all the needed headers are includedint main(){int pid;if (fork() == 0){printf(“A”); fflush(stdout);exit(1);} } 1(a) Draw the process graph for the execution of “main()”.In a process graph, each function, including main(), fork(), printf(), waitpid(), and exit(), is represented by a vertex. […]