diff --git a/ch3-coop/user/src/bin/00write_a.rs b/ch3-coop/user/src/bin/00write_a.rs index 67088ed..3303899 100644 --- a/ch3-coop/user/src/bin/00write_a.rs +++ b/ch3-coop/user/src/bin/00write_a.rs @@ -13,7 +13,7 @@ fn main() -> i32 { print!("A"); } println!(" [{}/{}]", i + 1, HEIGHT); - // sys_yield(); + sys_yield(); } println!("Test write_a OK!"); 0 diff --git a/ch3-coop/user/src/bin/01write_b.rs b/ch3-coop/user/src/bin/01write_b.rs index 1ae798f..64bd665 100644 --- a/ch3-coop/user/src/bin/01write_b.rs +++ b/ch3-coop/user/src/bin/01write_b.rs @@ -13,7 +13,7 @@ fn main() -> i32 { print!("B"); } println!(" [{}/{}]", i + 1, HEIGHT); - // sys_yield(); + sys_yield(); } println!("Test write_b OK!"); 0 diff --git a/ch3-coop/user/src/bin/02write_c.rs b/ch3-coop/user/src/bin/02write_c.rs index f9c8f71..25464bf 100644 --- a/ch3-coop/user/src/bin/02write_c.rs +++ b/ch3-coop/user/src/bin/02write_c.rs @@ -13,7 +13,7 @@ fn main() -> i32 { print!("C"); } println!(" [{}/{}]", i + 1, HEIGHT); - // sys_yield(); + sys_yield(); } println!("Test write_c OK!"); 0