[理工] 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