From 041adc8b9cb6a56a5e74ed8c3a07f899e353f439 Mon Sep 17 00:00:00 2001 From: Yifan Wu Date: Wed, 19 Jan 2022 16:37:06 -0800 Subject: [PATCH] Maximum concurrent processes from 40/35->30. --- user/src/bin/forktest.rs | 4 ++-- user/src/bin/matrix.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/user/src/bin/forktest.rs b/user/src/bin/forktest.rs index fea6967c..a7d523a8 100644 --- a/user/src/bin/forktest.rs +++ b/user/src/bin/forktest.rs @@ -6,7 +6,7 @@ extern crate user_lib; use user_lib::{fork, wait, exit}; -const MAX_CHILD: usize = 40; +const MAX_CHILD: usize = 30; #[no_mangle] pub fn main() -> i32 { @@ -31,4 +31,4 @@ pub fn main() -> i32 { } println!("forktest pass."); 0 -} \ No newline at end of file +} diff --git a/user/src/bin/matrix.rs b/user/src/bin/matrix.rs index 8ef2c044..8f1357ea 100644 --- a/user/src/bin/matrix.rs +++ b/user/src/bin/matrix.rs @@ -6,7 +6,7 @@ extern crate user_lib; use user_lib::{fork, wait, yield_, exit, getpid, get_time}; -static NUM: usize = 35; +static NUM: usize = 30; const N: usize = 10; static P: i32 = 10007; type Arr = [[i32; N]; N]; @@ -65,4 +65,4 @@ pub fn main() -> i32 { assert!(wait(&mut exit_code) < 0); println!("matrix passed."); 0 -} \ No newline at end of file +}