Giter Site home page Giter Site logo

Comments (4)

longguzzz avatar longguzzz commented on June 11, 2024 1

第二个线程thr2设置A的值为2

第二个线程thr2设置A的值为1

操作系统有切换回线程thr1继续执行

操作系统又切换回线程thr1继续执行

安全全状态

安全全状态

Finish[0..n-1]

Finish[0..=n-1]

from rcore-tutorial-book-v3.

chestNutLsj avatar chestNutLsj commented on June 11, 2024

指出了死锁产生的四个必要条件:

实际上这里应该是三个必要条件、一个充分条件,不宜混淆。

from rcore-tutorial-book-v3.

wyfcyx avatar wyfcyx commented on June 11, 2024

实际上这里应该是三个必要条件、一个充分条件,不宜混淆。

@chestNutLsj 从ostep上面的描述来看这四个都是必要条件?

from rcore-tutorial-book-v3.

chestNutLsj avatar chestNutLsj commented on June 11, 2024

实际上这里应该是三个必要条件、一个充分条件,不宜混淆。

@chestNutLsj 从ostep上面的描述来看这四个都是必要条件?

@wyfcyx 没有看过ostep,我根据的资料是精髓与设计原理。不过根据我的理解,互斥、占有并申请、不可抢占并不能直接导致死锁发生,但死锁一定会有这三个特征,所以是必要性;而循环等待链一旦成立,表明资源不足以供给进程的需要,因此一定会导致死锁发生,因而是充分性。

关于这个话题可以进一步查找资料和探讨。

from rcore-tutorial-book-v3.

Related Issues (20)

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.