Giter VIP home page Giter VIP logo

banker-s-algorithm's Introduction

Banker's Algorithm 银行家算法 js 描述

进程运行前需要申明需要使用的最大资源数目,每次申请资源时操作系统将根据所有进程的申明搜索可能的执行路径(安全的进程执行顺序),若存在这样一条路径则允许分配资源,若不存在路径则令该进程等待。

相当于抽象了一个有向图,其中包含了所有可能的进程执行路径,操作系统从一个初始顶点出发,目的是去往进程全部执行结束的终点。

每次进程申请资源就是要操作系统选择该条边的邻接点进行移动,有些邻接点存在去往终点的通路,而有些则不存在这条通路,安全性算法就是寻找该邻接点到终点的通路。

若存在通路则安全,不存在则不安全。

样例为 计算机操作系统(第四版)汤晓丹...编版 P113 "银行家算法之例" 节例

banker-s-algorithm's People

Contributors

drincann avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.