uClinux Scheduling - Linux

Table of Contents

※ 引述《HigherKuo (我需要好運)》之銘言:
: 各位好
: 在開發uClinux的user space程式當中遇到了一個問題
: 就是有些操作必須要在interrupt發生之後很短的時間內完成
: 有什麼方式可以改變uClinux的scheduling嗎?讓我的程式可以分配到更多CPU time
: 感謝!
自問自答
可以用 sched_param 這個struct
http://linux.die.net/man/2/sched_setparam

然後設定Priority
sched_get_priority_max
http://pubs.opengroup.org/onlinepubs/7908799/xsh/sched_get_priority_max.html

再設定scheduler
sched_setscheduler
http://www.kernel.org/doc/man-pages/online/pages/man2/sched_setscheduler.2.html

uClinux似乎沒有nice這個指令

--

All Comments

Elizabeth avatarElizabeth2012-10-16
uClinux的nice是在busybox裡,打開就有了