搜索资源列表
fl2
- 理发师问题,多个人等待理发师进行理发,其中涉及任务的分配-Barber problem, wait for more than personal barber for a haircut, which involves the allocation of tasks
lifawenti
- 设有一个理发师,5把椅子(另外还有一把理发椅),几把椅子可用连续存储单元。 要求: 1)为每个理发师/顾客产生一个线程,设计正确的同步算法 2)每个顾客进入理发室后,即时显示“Entered” 及其线程自定义标识,还同时显示理发室共有几名顾客及其所坐的位置。 3)至少有10个顾客,每人理发至少3秒钟。 4)多个顾客须共享操作函数代码。 -There is a barber, five chairs (in addition to a barber chair), a few
linux
- linux实验报告,描述管道创建信号量机制,建立理发类的作用就是要在主函数中显得更简洁明了,不至于觉得繁琐。使用更方便,也方便改动程序。-linux