Maximum concurrent processes from 40/35->30.
This commit is contained in:
parent
a3e665d6f4
commit
5e8cf728a7
2 changed files with 4 additions and 4 deletions
|
@ -6,7 +6,7 @@ extern crate user_lib;
|
||||||
|
|
||||||
use user_lib::{fork, wait, exit};
|
use user_lib::{fork, wait, exit};
|
||||||
|
|
||||||
const MAX_CHILD: usize = 40;
|
const MAX_CHILD: usize = 30;
|
||||||
|
|
||||||
#[no_mangle]
|
#[no_mangle]
|
||||||
pub fn main() -> i32 {
|
pub fn main() -> i32 {
|
||||||
|
@ -31,4 +31,4 @@ pub fn main() -> i32 {
|
||||||
}
|
}
|
||||||
println!("forktest pass.");
|
println!("forktest pass.");
|
||||||
0
|
0
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,7 +6,7 @@ extern crate user_lib;
|
||||||
|
|
||||||
use user_lib::{fork, wait, yield_, exit, getpid, get_time};
|
use user_lib::{fork, wait, yield_, exit, getpid, get_time};
|
||||||
|
|
||||||
static NUM: usize = 35;
|
static NUM: usize = 30;
|
||||||
const N: usize = 10;
|
const N: usize = 10;
|
||||||
static P: i32 = 10007;
|
static P: i32 = 10007;
|
||||||
type Arr = [[i32; N]; N];
|
type Arr = [[i32; N]; N];
|
||||||
|
@ -65,4 +65,4 @@ pub fn main() -> i32 {
|
||||||
assert!(wait(&mut exit_code) < 0);
|
assert!(wait(&mut exit_code) < 0);
|
||||||
println!("matrix passed.");
|
println!("matrix passed.");
|
||||||
0
|
0
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue