[理工] os thread觀念

看板Grad-ProbAsk作者 (ha)時間9年前 (2016/02/01 23:52), 編輯推噓1(104)
留言5則, 2人參與, 最新討論串1/1
Hi 大家好 想問以下這題要怎麼選 which threading model is supported by the linux os? a.one to one b.many to one c.ont to one d.may to many 有查到linux為one to one 那pthread算是linux os支援的吧?pthread 是否為many to one呢? 感謝各位回答。 -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 114.26.119.113 ※ 文章網址: https://www.ptt.cc/bbs/Grad-ProbAsk/M.1454341950.A.CE2.html

02/01 23:56, , 1F
Pthread是user thread many to one
02/01 23:56, 1F

02/02 00:08, , 2F
所以答案選bc嗎
02/02 00:08, 2F

02/02 00:09, , 3F
所以user thread對應到may to one 那kernel thread
02/02 00:09, 3F

02/02 00:09, , 4F
對應到one to one是這樣嗎
02/02 00:09, 4F

02/02 00:16, , 5F
Yes
02/02 00:16, 5F
文章代碼(AID): #1Mhty-pY (Grad-ProbAsk)