討論串[問題] 請問kthread?
共 2 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者chilam22 (chilam)時間16年前 (2009/01/10 16:08), 編輯資訊
1
0
0
內容預覽:
我在driver裡create兩個kernel thread,. thread A在loop裡輸出1, thread B在loop裡輸出2,. 如果我在loop裡不做sleep之類放棄cpu的動作,. 最後cpu就會一直被某個thread佔據,. 不會有thread切換的情況.. 所以是否kerne

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者etwas (i'm only dust)時間16年前 (2009/01/27 22:41), 編輯資訊
0
0
0
內容預覽:
kthread也會被scheduling阿.. 可是你硬是讓他busy loop,. 他每次就會在kernel scheduling的候選名單中.. 應該不是一直持有cpu,輪到他當然就是他run拉,. 但是全部process也沒幾個,所以感覺很像沒換手.. 當然, 如果你在NON-SMP的環境di
首頁
上一頁
1
下一頁
尾頁