Git Product home page Git Product logo

concurrent-programming's Issues

代码语法问题

  1. src/chapter4/DeadLock.java代码片段
    DeadLock 哲学家A = new DeadLock(fork1);
    DeadLock 哲学家B = new DeadLock(fork2);
    还有中文这种操作吗???????????????????????????????????
  2. 同志麻烦自己先运行通过,再commit, OK????????????????????????

第三章中CyclicBarrierDemo代码运行结果和书中说的不一致

src/chapter3/CyclicBarrierDemo.java
这个代码中,书中的运行结果最后是:司令:[士兵10个,任务完成!]

但是要有这样的结果,BarrierRun中的flag必须为true,但是整个代码中都没有置true的操作。

仔细想了想,作者的本意应该是执行到10个的时候,flag置true,不知道大家这里这个flag应该在哪里置true。

BarrierRun中的flag没有接口来修改,不知道作者是想通过什么方式来修改这个值。

另外,怎么感觉作者没有运行这个代码!!

#源码文件编码问题#

  1. 居然是GB2312 !!!? Amazing!!!!!!!!!!!!!!!!!!
  2. 建议全都UTF-8。。。。。。。。。。。。。。。。。。。。。。。。。。

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.