summaryrefslogtreecommitdiff
path: root/user
diff options
context:
space:
mode:
authorRobert Morris <[email protected]>2019-07-25 06:30:49 -0400
committerRobert Morris <[email protected]>2019-07-25 06:30:49 -0400
commit4e62de64cd3b8b67bdb2c3d8edab1ca353427a84 (patch)
treeb3f2c9b723486d2855574c330d4391c647093e33 /user
parentb19adf79f9ef5174cd0ff51b703f2ec0d9ad3cde (diff)
downloadxv6-labs-4e62de64cd3b8b67bdb2c3d8edab1ca353427a84.tar.gz
xv6-labs-4e62de64cd3b8b67bdb2c3d8edab1ca353427a84.tar.bz2
xv6-labs-4e62de64cd3b8b67bdb2c3d8edab1ca353427a84.zip
fix an exit/exit deadlock -> one more locking protocol violation
increase timer rate from 1/second to 10/second
Diffstat (limited to 'user')
-rw-r--r--user/usertests.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/user/usertests.c b/user/usertests.c
index 3d8786c..f74b88c 100644
--- a/user/usertests.c
+++ b/user/usertests.c
@@ -448,7 +448,7 @@ reparent(void)
printf(1, "reparent test\n");
- for(int i = 0; i < 100; i++){
+ for(int i = 0; i < 200; i++){
int pid = fork();
if(pid < 0){
printf(1, "fork failed\n");
@@ -571,10 +571,10 @@ forkforkfork(void)
exit();
}
- sleep(2);
+ sleep(20); // two seconds
close(open("stopforking", O_CREATE|O_RDWR));
wait();
- sleep(1);
+ sleep(10); // one second
printf(1, "forkforkfork ok\n");
}