26 關於多執行緒(multi-threading)模式中的多對一(many-to-one)模式,下列敘述何者正確?
(A)使用多對一的多執行緒模式時,當一個程序(process)中的一個執行緒(thread)被阻擋(blocked)時, 同程序中的其他的執行緒亦無法執行
(B)多個核心執行緒(kernel threads)映對到同一個使用者執行緒(user thread)
(C)在多核心系統中,一個程序使用多對一的多執行緒模式,將可同時使用多個核心
(D)在多核心處理器架構日漸普及下,多對一模式已成為主流的多執行緒系統的實作方式
答案:登入後查看
統計: A(60), B(45), C(63), D(53), E(0) #3358686
統計: A(60), B(45), C(63), D(53), E(0) #3358686
詳解 (共 2 筆)
#6292825
multi-threading有4種方式,many-to-one、many-to-many、one-to-one(主流)。thread、two-level。thread有分成user threads和kernel threads,上述的前三種方式都是user threads 對到kernel threads。
(b)如上述
(c)一個user thread對應一個kernel thread
(d)當今主流是one-to-one
ㅤㅤ
p.s. two-level 和 many-to-many相似,但現代os基本不用,因為有足夠的kernel threads讓他去做one-to-one
1
0