From 64a77673483f162579285f3f883d95577782626b Mon Sep 17 00:00:00 2001 From: zhushengle Date: Thu, 9 Sep 2021 11:58:18 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=BD=BB=E5=86=85=E6=A0=B8=E4=BB=BB?= =?UTF-8?q?=E5=8A=A1=E8=BF=81=E7=A7=BB=E7=8A=B6=E6=80=81=E6=8F=8F=E8=BF=B0?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Close #I482W8 Signed-off-by: zhushengle Change-Id: I39afff447f4d03c6043fac2fab123065bea98d45 --- en/device-dev/kernel/kernel-mini-basic-task-basic.md | 2 +- zh-cn/device-dev/kernel/kernel-mini-basic-task-basic.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/en/device-dev/kernel/kernel-mini-basic-task-basic.md b/en/device-dev/kernel/kernel-mini-basic-task-basic.md index 0f3d463a36c..fa4e6853cce 100644 --- a/en/device-dev/kernel/kernel-mini-basic-task-basic.md +++ b/en/device-dev/kernel/kernel-mini-basic-task-basic.md @@ -39,7 +39,7 @@ The task transition process is as follows: - Running → Blocked - When a running task is blocked \(suspended, delayed, or reading semaphores\), it will be deleted from the Ready queue and changes from the Running state to the Blocked state. Then, task switching is triggered to run the task with the highest priority in the Ready queue. + When a running task is blocked \(suspended, delayed, or reading semaphores\), it will be inserted into the corresponding blocking queue and changes from the Running state to the Blocked state. Then, task switching is triggered to run the task with the highest priority in the Ready queue. - Blocked → Ready \(Blocked → Running\) diff --git a/zh-cn/device-dev/kernel/kernel-mini-basic-task-basic.md b/zh-cn/device-dev/kernel/kernel-mini-basic-task-basic.md index 074596f4011..a9a5a554cfc 100644 --- a/zh-cn/device-dev/kernel/kernel-mini-basic-task-basic.md +++ b/zh-cn/device-dev/kernel/kernel-mini-basic-task-basic.md @@ -39,7 +39,7 @@ OpenHarmony LiteOS-M的任务模块可以给用户提供多个任务,实现任 - 运行态→阻塞态 - 正在运行的任务发生阻塞(挂起、延时、读信号量等)时,该任务会从就绪队列中删除,任务状态由运行态变成阻塞态,然后发生任务切换,运行就绪队列中最高优先级任务。 + 正在运行的任务发生阻塞(挂起、延时、读信号量等)时,将该任务插入到对应的阻塞队列中,任务状态由运行态变成阻塞态,然后发生任务切换,运行就绪队列中最高优先级任务。 - 阻塞态→就绪态(阻塞态→运行态) -- Gitee