[理工] OS time-sharing 恐龙原文描述的问题

楼主: TMDTMD2487 (ㄚ冰)   2017-11-10 21:41:55
如果你手边有书的话 9/e page.20 最下面
In a time-sharing system, the OS must ensure reasonable
response time. This goal is sometimes accomplished through
swapping, whereby processes are swapped in and out of main
memory to the disk.
A more common method for ensuring reasonable response time
is virtual memory,a technique that allows the execution of
a process that is not completely in memory. The main
advantage of the virtual-memory scheme is that it enables
users to run programs that are larger than actual physical
memory. Futher, it abstracts main memory into a large,
uniform array of storage, separating logical memory as
view by the user from physical memory.
我记得之前有一题多选题 有一个选项抄这边前两三行的
不过他把 response time 改成 turnaround time
结果我还想说是因为swap不能改善时间 然后就看到这段话
所以说为什么swap或是virtual memory可以改善response??
作者: leoone (里欧一代)   2017-11-10 22:37:00
我想是因为 Time sharing 要求极短暂的response time 才能在不同使用者之间切换,当使用者在执行程式时只要放部分程式在MEM中,以缩短search 跟 compare time ,就算被swap到Disk时间很长,反正是IO 切到其他process跑就好了
作者: can18 (18号)   2017-11-11 07:51:00
我认为是 若是需要整个swap in&out 需要很久但virtual memory容许部分加载 就可以恢复执行 会快的多就response time 而言抱歉搞错原po问题若不用swap或virtual mem,当memory space不足时 user 就必须等别人的process跑完才可以换他的,这就不是reasonableresponse time

Links booklink

Contact Us: admin [ a t ] ucptt.com