Thread Scheduler Priority

看板FB_current作者時間11年前 (2014/05/29 13:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串2/3 (看更多)
Hi, Guys. How can I adjust a certain thread to have the maximum system priority in the scheduler ? I've tried doing it this way : /* Set thread priority. */ if (pthread_getschedparam(ts[gnThreadID], &police, &param[gnThreadID]) != 0) { error ("Unable to get priority"); return 1; } param[gnThreadID].sched_priority = 99; if (pthread_setschedparam(ts[gnThreadID], police, &param[gnThreadID]) != 0) { error("Unable to set priority"); return 1; } However, in 'top', I don't see the process threads switching to -92 priority, like other threads in the system, is something I did wrong or maybe I might be missing something ? _______________________________________________ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
文章代碼(AID): #1JXiPI5e (FB_current)
文章代碼(AID): #1JXiPI5e (FB_current)