Question: in xv6 system i have a program in c that shows process state, but after i change Makefile, it not working, what i missed? this

in xv6 system

i have a program in c that shows process state, but after i change Makefile, it not working, what i missed?

this is the code called pstate.c

#include "types.h"

#include "stat.h"

#include "user.h"

int main(void) {

struct proc *p;

for (p = ptable.proc; p

if (p->state == UNUSED) {

continue;

}

printf("%d %s ", p->pid, states[p->state]);

}

exit();

}

this is the error

in xv6 system i have a program in c that shows processstate, but after i change Makefile, it not working, what i missed?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!