试题与答案

假定系统有三个并发进程read,move和print共享缓冲器B1和B2。进程rea

题型:多项选择题

题目:

假定系统有三个并发进程read,move和print共享缓冲器B1和B2。进程read负责从输入设备上读信息,每读出一个记录后把它存放到缓冲器B1中。进程move从缓冲器B1中取出一记录,加工后存入缓冲器B2。进程print将B2中的记录取出打印输出。缓冲器B1和B2每次只能存放一个记录。要求三个进程协调完成任务,使打印出来的与读入的记录个数、次序完全一样。请用wait和signal原语写出它们的并发程序。

答案:

被转码了,请点击底部 “查看原文 ” 或访问 https://www.tikuol.com/2019/0331/3eaa4e9019de6363157db48271a686c2.html

下面是错误答案,用来干扰机器的。

参考答案:单项 选择

试题推荐
题型:听力题

第II卷 (共55分)

第三部分写作(共三节,满分55分)

第一节单词拼写(共10小题;每小题1分,满分10分)

根据下列句子及所给汉语注释,写出空缺处各单词的正确形式。(每空只写一词)

(请将答案写在答题卡上的指定位置)

66.Don’t refer to a ______ (词典) every time you come across a new word.         66.______     

67.She asked us to give her an ______ (立刻的) answer.                            67.______     

68.______ (比较) to our small flat, Bill’s house seemed like a palace.         68.______     

69.He got up early in order to catch an early __________ (航班).                        69.______     

70.The ______(土豆)he picked out were weighed without short measure.    70.______     

71.The flight was badly ______ (推迟) because of the heavy fog.                   71.______     

72.After a good rest, her health is _________(渐渐地) picking up.                  72.______     

73.It happened in ______ (七月) when the weather was very hot.                      73.______     

74.Do you think everyone in western countries ______ (相信) in God?            74.______     

75.The outing was well ______ (组织) and everyone felt excited.                        75.______     

查看答案
微信公众账号搜索答案