Skip to content

Conversation

@Yaochenger
Copy link
Contributor

拉取/合并请求描述:(PR description)

[问题] 创建相同优先级的线程,线程时间片设置为0,在rt_tick_increase中会将该线程的时间片变为最大
若存在俩个线程使用轮询的方式调度,则首先启动的线程会长时间占用CPU
[解决办法] 在创建线程时添加对时间片的断言检查
[测试环境] art-pi + MDK5

@BernardXiong BernardXiong merged commit 46f464a into RT-Thread:master Apr 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants