皮皮学,免费搜题
登录
logo - 刷刷题
搜题
【简答题】
有一个理发师、一把理发椅和n把供等候理发的顾客坐的椅子。如果没有顾客,理发师便在理发椅上睡觉;当一个顾客到来时,唤醒理发师进行理发。如果理发师正在理发时又有新顾客到来,有空椅子可做,他就坐下来等,如果没有空椅子,就立即离开。 (1) 用信号量机制实现顾客进程和理发师进程的同步与互斥活动,要求用伪代码描述。 (2)说明所定义的信号量的含义。
手机使用
分享
复制链接
新浪微博
分享QQ
微信扫一扫
微信内点击右上角“…”即可分享
反馈
参考答案:
举一反三
【判断题】从一定程度上讲,受教育时间越长的个体越有可能接触到更多的健康相关知识,从而有助他们采取促进健康的行为。
A.
正确
B.
错误
【简答题】When an NBA player is young, he thinks he can win the championship by himself. It is only later ______ he has aged and been through many battles that he learns an important lesson: there is no “I” in ...
【单选题】听力原文:M: If I'd only looked earlier, I could have found a better apartment for less money. W: Yes, now that all the students are returning, the only places left are distant and expensive. Q: What is th...
A.
He thinks he has been overcharged.
B.
He doesn't like his neighbor.
C.
He is unhappy with the present apartments.
D.
He is forced to move out of his apartment.
【判断题】理论上,受拉的杆件是一维物体,各点受力是不一样的。
A.
正确
B.
错误
【单选题】(2013·东北三校一模)I am certain by no means ________ his word since he has promised an amount of money to the poor.
A.
he will break
B.
will he break
C.
broke
D.
did he break
【单选题】按照一定原则和方法,将有保存价值的文件分门别类地整理成案卷,称为( C )
A.
资料整理
B.
验收
C.
立卷
D.
归档
【单选题】按照一定原则和方法,将有保存价值的文件分门别类地整理成案卷,称为( )。
A.
资料整理
B.
立卷
C.
验收
D.
归档
【简答题】Passage 7 John is a paper boy. He deliversnewspapers to different houses in his street every day. He has about 80 customers. Half of his customers only take the newspapers on weekdays, and about half ...
【判断题】计算机通用性的特点表现在几乎能求解自然科学和社会科学中一切类型的问题,能广泛地应用于各个领域。
A.
正确
B.
错误
【简答题】根据句意及首字母提示填写单词,使句子意思完整。 1. Mr. Wang is very r________. He has quite a lot of money. 2. Kangkang is feeling truly sad. He f________ the English exam. 3. It's my dream to l________ on the moon one day. ...
相关题目:
参考解析:
知识点:
题目纠错 0
发布
创建自己的小题库 - 刷刷题