[理工] [計組]-台大94-資工所
(4) Paging avoids the problem of external fragmentation of memory
in a multi-programming environment.
(5) If a thread generates an exception while inside a critical section
protected by a lock, the OS can just kill the thread and release
the lock; other threads should be able to continue accessing that critical
section without problem. (Assume that locks are implemented by the kernel so
that the OS that knows all the locks that any particular thread is holding at
any point in time.)
找到的答案是(4)F(5)T
(4)應該是T吧
(5)應該是F吧
看前面的討論也是認為(4)T
但(5)也有不少認為是T
(5)如果真是T 是為何可以不用管有可能C.S 被執行的程式
是因為(Assume that locks are implemented by the kernel so
that the OS that knows all the locks that any particular thread is holding at
any point in time.)
這句話的關係嗎?
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 114.45.64.133
推
01/28 01:42, , 1F
01/28 01:42, 1F
→
01/28 01:42, , 2F
01/28 01:42, 2F
→
01/28 01:43, , 3F
01/28 01:43, 3F
→
01/28 01:43, , 4F
01/28 01:43, 4F
→
01/28 01:44, , 5F
01/28 01:44, 5F
→
01/28 01:44, , 6F
01/28 01:44, 6F
討論串 (同標題文章)
完整討論串 (本文為第 3 之 3 篇):