Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Consider the figure 4.5 if the current entry in a particular pcb is zombie what are the possible next values of this entry immediately after

Consider the figure 4.5
if the current entry in a particular pcb is zombie what are the possible next values of this entry immediately after a change in this entry? image text in transcribed
THE ABSTRACTION: THE PROC // the registers xv6 will save and restore // to stop and subsequently restart a process struct context ( int eip; int esp; int ebx; int ecx; int edx; int esi; int edi int ebp: unat are te o // the different states a process can be in enum proc_state UNUSED, EMBRYO, SLEEPING, RUNNABLE, RUNNING, ZOMBIE // the information xv6 tracks about each process // including its register context and state struct proc i char mem; uint sz; char +kstack; /I Start of process memory // Size of process memory // Bottom of kernel stack / for this process // Process state // Process ID enum proc state state: int pid; struct proc *parenti void +chan; int killed; struct file ofile(NOFILEl: // Open files struct inode .cwd; struct context context; struct trapframe tf // Parent process // If non-zero, sleeping on chan // If non-zero, have been killed // Current directory // Switch here to run process // Trap frame for the /1 current interrupt li Figure 4.5: The xv6 Proc Structure You can also see from the figure that there are some other states a pr THE ABSTRACTION: THE PROC // the registers xv6 will save and restore // to stop and subsequently restart a process struct context ( int eip; int esp; int ebx; int ecx; int edx; int esi; int edi int ebp: unat are te o // the different states a process can be in enum proc_state UNUSED, EMBRYO, SLEEPING, RUNNABLE, RUNNING, ZOMBIE // the information xv6 tracks about each process // including its register context and state struct proc i char mem; uint sz; char +kstack; /I Start of process memory // Size of process memory // Bottom of kernel stack / for this process // Process state // Process ID enum proc state state: int pid; struct proc *parenti void +chan; int killed; struct file ofile(NOFILEl: // Open files struct inode .cwd; struct context context; struct trapframe tf // Parent process // If non-zero, sleeping on chan // If non-zero, have been killed // Current directory // Switch here to run process // Trap frame for the /1 current interrupt li Figure 4.5: The xv6 Proc Structure You can also see from the figure that there are some other states a pr

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Intelligent Information And Database Systems Second International Conference Acids Hue City Vietnam March 2010 Proceedings Part 1 Lnai 5990

Authors: Manh Thanh Le ,Jerzy Swiatek ,Ngoc Thanh Nguyen

2010th Edition

3642121446, 978-3642121449

More Books

Students also viewed these Databases questions

Question

explain the need for human resource strategies in organisations

Answered: 1 week ago

Question

describe the stages involved in human resource planning

Answered: 1 week ago