Question: Implement two versions ( Version 1 and Version 2 ) of a process creation hierarchy in the C programming language. Assume the existence of a
Implement two versions Version and Version of a process creation hierarchy in the C programming language. Assume the existence of a simplified Process Control Block PCB data structure represented as an array of size n The PCBs contain information about parentchild relationships, and two approaches are explored one using linked lists and another avoiding linked lists. Version Using Linked Lists PCBs have two fieldsindex of the process's creator and children a linked list of child processes Functions createand destroyhandle process creation and destruction using linked lists. The necessary functions are simplified as follows: createp represents the create function executed by process PCBD The function creates a new child process PCBq of process PCBp by performing the following tasks:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
