Processes 0-4 are related as follows: 1 and 2 are children of 0, 3 and 4 are
Fantastic news! We've Found the answer you've been seeking!
Question:
- Processes 0-4 are related as follows: 1 and 2 are children of 0, 3 and 4 are children of 2. PCBs are implemented as an array indexed by the process number. Each PCB has the links: parent (p), first child (c), younger sibling (ys), and older sibling (os).
- Please draw the diagram to showing the parent-child relationships among these 5 processes using linked lists.
- Complete the PCB array to show the values of the 4 links (p, c, ys, os) for all processes, to reflect the parent-child hierarchy. (Please fill values in the box below. Use dash if a process has no child, younger or older sibling)
0 | 1 | 2 | 3 | 4 | 5 | … | |
… | … | … | … | … | … | … | … |
p | |||||||
c | |||||||
ys | |||||||
os |
- Modify the diagram in (a) to reflect the creation of a new child, 5, of process 1.
- Modify the array to reflect the creation of a new child, 5, of process 2. (Please fill values in the box below Use dash if a process has no child, younger or older sibling)
0 | 1 | 2 | 3 | 4 | 5 | … | |
… | … | … | … | … | … | … | … |
p | |||||||
c | |||||||
ys | |||||||
os |
Related Book For
An Introduction To Statistical Methods And Data Analysis
ISBN: 9781305465527
7th Edition
Authors: R. Lyman Ott, Micheal T. Longnecker
Posted Date: