摘 要:Dijkstra的银行家算法是最具代表性的避免死锁的算法,该算法是在确保当前系统安全的前提下,对进程请求进行检查,决定资源是否分配。本论文实现了银行家算法,并根据算法设计并实现了高校排课系统。在高校排课系统中,把每门选修课的人数看作是进程,把教室看作计算机系统资源,通过系统判断可使用的教室资源是否能满足所有学生上课的需求,找到一个能满足所有要求的安全序列。高校排课系统具有效率高,体积小,运行速度快的优点,能快速实现教室资源的分配。8433
关键词:银行家算法;排课系统;死锁;安全性序列
Research and Application of The Banker's Algorithm
Abstract: Bankers algorithm Dijkstra algorithm to avoid deadlock is the most representative, which is based on the premise that the current system of safety, to inspect the process request, whether the allocation decision resources. This paper realized the bankers algorithm, and according to the algorithm design and implementation of college course scheduling system. In the university course scheduling system, each course number as process, the classroom as the computer system resources, determine whether the use of classroom resources to meet all the needs of students in class through the system, find a can meet all the requirements of the safe sequence. University course scheduling system has the advantages of high efficiency, small size, fast speed, can quickly achieve the classroom resource allocation.
Key words: Bankers algorithm;Course scheduling system;Deadlock; Safety series
目 录