[理工] 104台大OS

楼主: kent12342004 (Kent)   2015-02-09 19:06:41
请问semaphore那题要怎么设计连续三次一定可以进去CS一次
当下想想不太到...只写了无条件限制的版本
作者: xu4rup3 (sa)   2015-02-09 19:27:00
想知道csring 跟 indirect branch 与 direct branch
作者: joe321pig (屌man)   2015-02-09 19:51:00
我想到的是新增一个semaphore初值=0 用来卡住刚出CS的不过还没写完时就到了....
作者: raok (台大吴彦祖)   2015-02-11 07:04:00
这题我是用counting semaphore写一半就跳了

Links booklink

Contact Us: admin [ a t ] ucptt.com