作者boy5548 (小YO)
看板Grad-ProbAsk
標題[理工] [OS] 96交大資工
時間Wed Feb 2 11:32:08 2011
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
推 ai305428d:6.問你semaphore得製作在single和multi有什麼不同 02/02 16:11
→ ai305428d:single的話只要在wait或signal運作的時候 關閉中斷機制 02/02 16:12
→ ai305428d:但換成Multi的情況 必須要關閉所有processor的中斷機制 02/02 16:13
→ ai305428d:這樣效能會變很差 02/02 16:14
→ ai305428d:所以取而代之的做法是 02/02 16:14
→ ai305428d:用Algorithm based 或Hw support 02/02 16:15
→ ai305428d:將s=s+1 或s=s-1 填入上面兩個方法的C.S 02/02 16:16
→ YankSC:不只是semaphore吧 應該是general case的C.S. 02/02 16:34
→ aoqq12:查spinlock 跟 disable interrupt 02/05 12:13