Re: [問題] uClinux Scheduling
※ 引述《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這個指令
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 76.182.69.202
→
10/16 22:56, , 1F
10/16 22:56, 1F
討論串 (同標題文章)
本文引述了以下文章的的內容:
完整討論串 (本文為第 2 之 2 篇):