[其他] 求救!陳省隆作業系統作業...

看板NTUST_Talk作者 (阿通)時間13年前 (2011/04/22 00:15), 編輯推噓3(3010)
留言13則, 6人參與, 最新討論串1/1
花了兩小時,CH3的第6題還是不知道答案..., 有誰能解釋嗎= =? 題目如下: There are two different implementations of POSIX pthreads in Linux. One is at user level, the other is as kernel threads . Which one is installed on the system you are using? PS.題目一知半解... -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 123.193.40.219

04/22 00:34, , 1F
他問你, Linux下面的pthread有兩個版本, 一個是user的,
04/22 00:34, 1F

04/22 00:35, , 2F
一個是kernel, 請問你用的是使用哪一種?
04/22 00:35, 2F

04/22 00:38, , 3F
印象中kernel 2.4或更早的是user; 2.6的是kernel.
04/22 00:38, 3F

04/22 00:41, , 4F
謝樓上,那答案是 user 嗎?
04/22 00:41, 4F

04/22 00:43, , 5F
所以這要看我用哪一個版本?沒有正確答案 事嗎?
04/22 00:43, 5F

04/22 00:50, , 6F
我看網路上說,pthread在linux是由kernel實現,是這樣子嗎?
04/22 00:50, 6F

04/22 00:59, , 7F
hint:pthread_create()
04/22 00:59, 7F

04/22 01:10, , 8F
大概是我太笨吧...我把pthread_create看完 還是不懂 = =
04/22 01:10, 8F

04/22 11:16, , 9F
both吧!甚麼爛題目
04/22 11:16, 9F

04/22 15:45, , 10F
老師用的Operating system with linux 偏實用,但google
04/22 15:45, 10F

04/22 15:46, , 11F
已經開始找不到相關知識...,誰能提供相關參考書籍嗎?
04/22 15:46, 11F

04/22 17:25, , 12F
原PO懶趴
04/22 17:25, 12F

04/23 10:42, , 13F
怎麼看起來像在問你家裝哪個版本 囧
04/23 10:42, 13F
文章代碼(AID): #1Di5WnTI (NTUST_Talk)