想跟大家對一下線代還有DS的答案
【線代】
7.? 猜a
8.2
9.8
10.說是出錯?
【DS】
是103年改簡述題改到怕了嗎.. 難度差異好大
一.
1~6 ABBABA
7~10 BBBA
二. 四.
http://imgur.com/N9NLbpb
【OS】
8.好像表達的沒有很好 想參考一下大家怎麼寫的QQ
Chair: semaphone=4;
Pi: int=0;
while(前兩輪)
{
Pi++;
wait(chair);
C.S.
signal(chair);
}
if(Pi==0)then wait(chair);
wait(chair);
C.S.
signal(chair);
10-B.
我看到wiki有這句話
While working directly with a vector of buffers can be significantly harder
than working with a single buffer, there are often higher-level APIs for
working efficiently that can mitigate the problem.
應該可以作為解答吧 但我不太懂這句話的意思orz 求高手解釋
祝各位明後天台大都能正取