Re: [問題] uClinux Scheduling

看板Linux作者 (我需要好運)時間13年前 (2012/10/15 23:03), 編輯推噓0(001)
留言1則, 1人參與, 最新討論串2/2 (看更多)
※ 引述《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
uClinux的nice是在busybox裡,打開就有了
10/16 22:56, 1F
文章代碼(AID): #1GV2MxdT (Linux)
討論串 (同標題文章)
文章代碼(AID): #1GV2MxdT (Linux)