文件名称:aaa
介绍说明--下载内容来自于网络,使用问题请自行百度
有一个理发师,一把理发椅和n把提供给等候理发的顾客座的椅子。如果没有顾客,则理发师便在理发椅子上睡觉;当第一个顾客到来时,必须唤醒该理发师进行理发;如果理发师正在理发时又有顾客到来,则如果有空椅子可坐,他就坐下来等待,如果没有空椅子,他就离开理发店。
为理发师和顾客各编一段程序描述他们的行为,要求不能带有竞争条件,试用P、V操作实现。(There was a barber, a barber's chair and a chair n offered to the customer waiting for the haircut. If no customers, the barber would sleep in the barber chair; when the customer comes first, must arouse the barber for a haircut; if the barber is the barber again when customers come, if the empty chair sitting, he sat down to wait, if there is no empty seat, he left the barber shop.
Prepare a program for barbers and customers to describe their actions, requiring no competition, and trial P and V operations.)
为理发师和顾客各编一段程序描述他们的行为,要求不能带有竞争条件,试用P、V操作实现。(There was a barber, a barber's chair and a chair n offered to the customer waiting for the haircut. If no customers, the barber would sleep in the barber chair; when the customer comes first, must arouse the barber for a haircut; if the barber is the barber again when customers come, if the empty chair sitting, he sat down to wait, if there is no empty seat, he left the barber shop.
Prepare a program for barbers and customers to describe their actions, requiring no competition, and trial P and V operations.)
相关搜索: pv操作
(系统自动生成,下载前可以参看下载内容)
下载文件列表
aaa.java
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.