added busy loop to see cpu spike
This commit is contained in:
@@ -289,8 +289,9 @@ int main(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (pid == 0) {
|
if (pid == 0) {
|
||||||
pause();
|
for (;;) { // busy loop to keep child processes alive
|
||||||
return 0;
|
asm volatile("" ::: "memory");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
count++;
|
count++;
|
||||||
|
|||||||
Reference in New Issue
Block a user