在分散式系統(Distributed Systems)中,為減少系統的總延遲(overall latency of operations),下列那一項是不可行的方法?
A使用互斥量(mutex)鎖定共享資源(shareable resources)正確答案
B複製(replicating)計算單位(computational units)
C預取(prefetching)數據(data)
D多線程(multithreading)
答案與詳解
mutex 是互斥鎖,用於保護共享資源避免競爭條件 (race condition),但同一時間只允許一個執行緒存取,其他要排隊等待,反而拉長延遲。目的在「正確性」而非「效能」。
