[理工] [OS] 96交大資工

看板Grad-ProbAsk作者 (小YO)時間15年前 (2011/02/02 11:32), 編輯推噓1(108)
留言9則, 3人參與, 最新討論串1/1
6.The design considerations of the solutions for solving the critical-section problem for a single-processor system are diffirent from that for a multi- processor system.Please describe the different and explain your answer. 這題該怎麼答比較好... 8.What is a log-structured file system, and what is a journaling file system? What are the motivations behind the two kinds of file-system implememtations? 這題該怎麼答?? 謝謝大家!! -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 114.39.3.53

02/02 16:11, , 1F
6.問你semaphore得製作在single和multi有什麼不同
02/02 16:11, 1F

02/02 16:12, , 2F
single的話只要在wait或signal運作的時候 關閉中斷機制
02/02 16:12, 2F

02/02 16:13, , 3F
但換成Multi的情況 必須要關閉所有processor的中斷機制
02/02 16:13, 3F

02/02 16:14, , 4F
這樣效能會變很差
02/02 16:14, 4F

02/02 16:14, , 5F
所以取而代之的做法是
02/02 16:14, 5F

02/02 16:15, , 6F
用Algorithm based 或Hw support
02/02 16:15, 6F

02/02 16:16, , 7F
將s=s+1 或s=s-1 填入上面兩個方法的C.S
02/02 16:16, 7F

02/02 16:34, , 8F
不只是semaphore吧 應該是general case的C.S.
02/02 16:34, 8F

02/05 12:13, , 9F
查spinlock 跟 disable interrupt
02/05 12:13, 9F
文章代碼(AID): #1DID0yhw (Grad-ProbAsk)