搜索资源列表
OS_HairCut_CSharp
- 操作系统课程实验里理发师问题的报告,用于模拟进程调试,程序用C#实现-operating systems courses experiment Barber's report for the modeling process debugging, procedures using C#
lifashi
- 理发师睡觉问题 可以利用它来解决嗜睡的理发师问题 进程调度与信号量问题-Seville sleep problems can use it to solve the problem sleepiness barber process scheduling and capacity problems of signal
BarberAndCustomer
- 1)用C语言或C++语言编程实现P、V原语并用P、V原语描述如下生产者-消费者问题: 有一个理发师,一把理发椅和n把提供给等候理发的顾客座的椅子。如果没有顾客,则理发师便在理发椅子上睡觉;当第一个顾客到来时,必须唤醒该理发师进行理发;如果理发师正在理发时又有顾客到来,则如果有空椅子可坐,他就坐下来等待,如果没有空椅子,他就离开理发店。 为理发师和顾客各编一段程序描述他们的行为,要求不能带有竞争条件,试用P、V操作实现。 (2)分析 此题可看作是n个生产者和1个消费者问题
sleepingBarber
- 使用多线程方法模拟互斥量下的两个理发师的睡眠理发师问题,用于操作系统实验,代码中默认椅子数为2-Using the thread and mutex, samephore to solve the sleeping barber problem with two barbers.
Room
- 理发师与顾客问题,利用信号量实现线程间的互斥,代码完整,可利用Eclipse查看。-Barber and customer issues, the use of semaphores to implement mutual exclusion between threads, code integrity, and can be used Eclipse view.