想跟大家对一下线代还有DS的答案
【线代】
7.? 猜a
8.2
9.8
10.说是出错?
【DS】
是103年改简述题改到怕了吗.. 难度差异好大
一.
1~6 ABBABA
7~10 BBBA
二. 四.
【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 求高手解释
祝各位明后天台大都能正取