资源列表
[操作系统开发] readwrieter
说明:创建一个控制台进程,此进程包含n个线程。用这n个线程来表示n个读者或写者。每个线程按相应测试数据文件的要求进行读写操作。用信号量机制分别实现读者优先和写者优先的读者-写者问题。-Creating a console, this process contain n threads. Use of these n threads to express n readers who write. Each thread according to the requirements of relevant<陆嘉> 在 2025-06-08 上传 | 大小:2kb | 下载:0
[操作系统开发] smoker
说明: 抽烟者问题。假设一个系统中有三个抽烟者进程,每个抽烟者不断地卷烟并抽 烟。抽烟者卷起并抽掉一颗烟需要有三种材料:烟草、纸和胶水。一个抽烟者有烟 草,一个有纸,另一个有胶水。系统中还有两个供应者进程,它们无限地供应所有 三种材料,但每次仅轮流提供三种材料中的两种。得到缺失的两种材料的抽烟者在 卷起并抽掉一颗烟后会发信号通知供应者,让它继续提供另外的两种材料。这一过 程重复进行。 -Smoker problem. Suppose a system has three smoker processe<Zicheng Zhang> 在 2025-06-08 上传 | 大小:7kb | 下载:0
[操作系统开发] src
说明:研究死锁时的经典案例,哲学家进餐,这里有五个不同的实现(因为在对这个问题的研究过程中前人提出了很多的思路),这里实现了最经典常见的五种-The Case Study of deadlock, the Dining Philosophers, here are five different implementations (as in the study of this issue in the previous made a lot of ideas), where realization of<> 在 2025-06-08 上传 | 大小:6kb | 下载:0