Giter Site home page Giter Site logo

Comments (2)

SKTT1Ryze avatar SKTT1Ryze commented on June 18, 2024

非常感谢您的问题,指出了我们项目的问题所在。
首先第一个问题,我觉得这里进程调度不按 pid 的顺序执行是正常的,这里的 pid 不是严格意义上的进程标识符,按照何种顺序调度由内核实现决定。而我们在移植过程中并没有太过注意这个细节,您如果感兴趣这里的原因的话可以去看下源码实现。
第二个问题,这是我们项目的一个 bug,因为我们没在第 1 个核(区别于第 0 个)里面设置时钟中断,即 timerinit() 这个函数,因此第 1 个核一直没有进入时钟中断处理函数里面。而进程切换就是在时钟中断里面做的,所以第 1 个核一直没有进程调度。
非常感谢您帮我们发现了这个bug,现在这个 bug 已经被我修好并且更新到 github 的代码中去了,您可以 git pull 更新代码再尝试一下。

from xv6-k210.

XiangyuSu611 avatar XiangyuSu611 commented on June 18, 2024

已经可以观察到双核调度了,非常感谢!

from xv6-k210.

Related Issues (10)

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.