From 9b6bfc7c870e3c27af4ed3b0875ca78fdcb56329 Mon Sep 17 00:00:00 2001 From: zhangxinyu <840317537@qq.com> Date: Tue, 23 May 2023 17:04:17 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=80=E5=A7=8B=E5=AE=9E=E7=8E=B0task=20cont?= =?UTF-8?q?ext=20=E6=89=80=E4=BB=A5,=20=E7=8E=B0=E5=9C=A8=E7=BC=96?= =?UTF-8?q?=E8=AF=91=E5=87=BA=E5=8F=AF=E4=BB=A5=E4=B8=BB=E5=8A=A8=E8=AE=A9?= =?UTF-8?q?=E5=87=BAcpu=E7=9A=84=E7=94=A8=E6=88=B7=E5=BA=94=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ch3-coop/user/src/bin/00write_a.rs | 2 +- ch3-coop/user/src/bin/01write_b.rs | 2 +- ch3-coop/user/src/bin/02write_c.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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