作者st474ddr (hikke)
看板Grad-ProbAsk
標題[理工] 102成大 計系6 8 9
時間Wed Jan 16 22:12:33 2019
各位大大好
https://i.imgur.com/qsggdBj.jpg
第六題ABC我都不太確定答案
尤其B我不知道該寫什麼東西來解釋
https://i.imgur.com/0kt1co9.jpg
第八題我也是不知道該怎麼描述
謝謝各位大大
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 27.52.1.99
※ 文章網址: https://webptt.com/m.aspx?n=bbs/Grad-ProbAsk/M.1547647956.A.8A8.html
1F:推 EXPCDR: 我認為6a是false,死結的必要條件只有mutual exclusion,h01/16 22:26
2F:→ EXPCDR: old and wait,circular waiting,non preemption01/16 22:26
3F:推 plsmaop: 6b可以看看資料庫相關文章01/16 22:28
4F:推 plsmaop: atomicity01/16 22:29
※ 編輯: st474ddr (27.52.1.99), 01/16/2019 23:19:47
5F:→ st474ddr: 感謝兩位大大 回p大我明白這是DB在做transaction 用的 01/16 23:21
6F:→ st474ddr: 方法 可是不確定他要的到底是什麼QQ 01/16 23:21
7F:推 nannnnn: c應該是raid0的performance比較好,因為他 strip到多顆di 01/17 00:20
8F:→ nannnnn: sk在讀相同大小的資料下,raid 0可以一次讀多顆disk,raid 01/17 00:20
9F:→ nannnnn: 1則無法 01/17 00:20
10F:→ nannnnn: 另外我記得raid0是採block interleaving所以如果今天問題 01/17 00:26
11F:→ nannnnn: 是small read的效能影響,那raid 0 and raid 1會差不多 01/17 00:26
12F:推 KWire: 你發現 available==1 到把它減 1 中間不保證 atomic 01/17 00:44
13F:→ KWire: 你需要 atomic CAS 或類似的指令 01/17 00:45
14F:→ KWire: 再來沒有 disable IRQ ,鎖到一半中斷被 ISR 用到就爆掉了 01/17 00:46
15F:→ st474ddr: 感謝各位大大 01/18 13:55