syscall lab finished
This commit is contained in:
@@ -691,3 +691,13 @@ procdump(void)
|
||||
printf("\n");
|
||||
}
|
||||
}
|
||||
|
||||
int
|
||||
proc_size()
|
||||
{
|
||||
int i =0, n = 0;
|
||||
for (; i < NPROC; ++i) {
|
||||
if (proc[i].state != UNUSED) n += 1;
|
||||
}
|
||||
return n;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user