搜索资源列表
银行家算法
- 根据银行家算法的基本思想编写和调试一个实现动态资源分配的模拟程序并能够有 效地防止和避免死锁的发生。(According to the basic idea of banker's algorithm, we compile and debug a simulation program to realize dynamic resource allocation, and we can have To prevent and avoid the occurrence of deadlock.
银行家算法
- 银行家算法是一个避免死锁的著名算法,是由艾兹格·迪杰斯特拉设计的一种避免死锁产生的算法。它以银行借贷系统的分配策略为基础,判断并保证系统的安全运行。(Banker algorithm is a well-known algorithm to avoid deadlock. It is a algorithm designed by Azeg Dijkstra to avoid deadlock. It is based on the allocation strategy of bank len
041761银行家算法(C语言)
- 在计算机操作系统中,最有代表的避免死锁的算法,是Dijkstra银行家算法。这是由于该算法能用于银行系统现金贷款的发放而得名的。为了加深对该算法的认识和掌握,进而在计算机上实现。为了实现银行家算法,系统中必须设置若干数据结构(In the computer operating system, the most representative algorithm to avoid deadlock is the Dijkstra banker algorithm. This is because t
操作系统实验
- 本文档包含操作系统的六个实验(FCFS和SJF进程调度算法,时间片轮转RR进程调度算法,预防进程死锁的银行家算法,动态分区分配算法,虚拟内存页面置换算法,磁盘调度算法),文档最后附有源代码。(This document contains six experiments of the operating system (FCFS and SJF process scheduling algorithm, time slice rotation RR process scheduling algor
十字路口
- 有两条道路双向两个车道,即每条路每个方向只有一个车道,两条道路十字交叉。假设车辆只能向前直行,而不允许转弯和后退。如果有4辆车几乎同时到达这个十字路口,如图(a)所示;相互交叉地停下来,如图(b),此时4辆车都将不能继续向前,这是一个典型的死锁问题。从操作系统原理的资源分配观点,如果4辆车都想驶过十字路口,那么对资源的要求如下: 向北行驶的车1需要象限a和b; 向西行驶的车2需要象限b和c; 向南行驶的车3需要象限c和d; 向东行驶的车4需要象限d和a。 clipboa
死锁检验与解除
- 用于模拟系统在进程请求资源过程中,会不会发生死锁,检测出会发生死锁的进程,并且解除死锁(It is used to simulate whether deadlock will occur in the process of requesting resources, detect the process that will occur deadlock, and unlock the deadlock.)