文件名称:lifawenti
介绍说明--下载内容均来自于网络,请自行研究使用
设有一个理发师,5把椅子(另外还有一把理发椅),几把椅子可用连续存储单元。
要求:
1)为每个理发师/顾客产生一个线程,设计正确的同步算法
2)每个顾客进入理发室后,即时显示“Entered” 及其线程自定义标识,还同时显示理发室共有几名顾客及其所坐的位置。
3)至少有10个顾客,每人理发至少3秒钟。
4)多个顾客须共享操作函数代码。 -There is a barber, five chairs (in addition to a barber chair), a few chairs available contiguous memory cell. Requirements: 1) for each of the barber/customer to generate a thread, designed to correct synchronization algorithm 2) Every customer entered a barbershop, immediately after the show " Entered" and the thread is a custom logo, also showed there were a few barbershop Customers and the sitting position. 3) At least 10 customers, each hair for at least 3 seconds. 4) A number of customers to share the operation of the function code.
要求:
1)为每个理发师/顾客产生一个线程,设计正确的同步算法
2)每个顾客进入理发室后,即时显示“Entered” 及其线程自定义标识,还同时显示理发室共有几名顾客及其所坐的位置。
3)至少有10个顾客,每人理发至少3秒钟。
4)多个顾客须共享操作函数代码。 -There is a barber, five chairs (in addition to a barber chair), a few chairs available contiguous memory cell. Requirements: 1) for each of the barber/customer to generate a thread, designed to correct synchronization algorithm 2) Every customer entered a barbershop, immediately after the show " Entered" and the thread is a custom logo, also showed there were a few barbershop Customers and the sitting position. 3) At least 10 customers, each hair for at least 3 seconds. 4) A number of customers to share the operation of the function code.
相关搜索: 理发师
(系统自动生成,下载前可以参看下载内容)
下载文件列表
lifawenti.doc