Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fix] 添加创建线程函数时间片参数检查 #8807

Merged
merged 1 commit into from
Apr 16, 2024

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
41 checks passed
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