作者zelkova (祥)
看板Grad-ProbAsk
标题[理工] [OS] File system
时间Mon Jan 31 02:13:04 2011
1. Which statements are false?
(A)index allocation has better performance than linked allocation.
(B)index allocation has poor performance than linked allocation.
Ans:(A)(B)are the same performance problem
请问index不是比较快吗?
2. Storage can be dynamically allocated to the hosts attached to the same
storage-area network.
请问这句话错在哪里呢?
3. 这题题目很长.. 先提一下疑问@@.. 解答在求page table的entry用了 32+4 bits
从算式来看, 解答把offset(14bits)也存进page table惹...
不过entry里面应该不用存offset吧? 这样是不是 18+4 bits就OK了捏?
Consider a virtual memory system with the following properties:
38-bit virtual byte address. 16-KB pages, and 32-bit physical byte address.
What is the total size of the page table for each process on this machine,
assuming that the valid. Protection, dirty, and use bits take a total of 4
bits and the all the virtual pages are in use? (Assume that disk address are
not stored in the page table)
4.
http://www2.lib.nctu.edu.tw/n_exam/exam92/cis/cis136.pdf
12题答案是(A).. 请问怎麽解答的呢?
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 220.135.91.184
※ 编辑: zelkova 来自: 220.135.91.184 (01/31 04:34)
1F:推 aoqq12:....空间分配跟执行速度应该没什麽关系 02/01 14:18
2F:→ aoqq12:跟seek time比较有关系 02/01 14:18
3F:推 aoqq12:第三题 嗯它写错了没错 2^24(4+18)bit 02/01 14:27
4F:→ zelkova:谢谢一楼戴眼镜的同学~ ...Q2跟Q4请大家帮帮忙@@ 02/02 00:28
5F:→ aerystyle:Q4 因为没有互次存取所以会有race condition的问题 02/05 21:11
6F:→ aerystyle:因为主要为C.D的值在改变,所以只需讨论他们的执行顺序 02/05 21:13
7F:→ aerystyle:1.(80.80)C:先T1再T2,D:T2先assignT1再assign 02/05 21:15
8F:→ aerystyle:2.(120.80)C:T2先assignT1再assignD:T2先assignT1再assi 02/05 21:20
9F:→ aerystyle:gn,其他的就差不多的做法,有问题在站内信问我吧 02/05 21:21