Question: PCBs have two fields: parent ( index of the process's creator ) and children ( a linked list of child processes ) . Functions create
PCBs have two fields: parent index of the process's creator and children a linked list of child processes
Functions createp and destroyp handle process creation and destruction using linked lists.
The necessary functions are simplified as follows:
createp represents the create function executed by process PCBp The function creates a new child process PCBq of process PCBp by performing the following tasks:
allocate a free PCBq
record the parent's index, p in PCBq
initialize the list of children of PCBq as empty
create a new link containing the child's index q and appends the link to the linked list of PCBp
destroyp represents the destroy fu
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
