Comments (2)
非常感谢您的问题,指出了我们项目的问题所在。
首先第一个问题,我觉得这里进程调度不按 pid 的顺序执行是正常的,这里的 pid 不是严格意义上的进程标识符,按照何种顺序调度由内核实现决定。而我们在移植过程中并没有太过注意这个细节,您如果感兴趣这里的原因的话可以去看下源码实现。
第二个问题,这是我们项目的一个 bug,因为我们没在第 1 个核(区别于第 0 个)里面设置时钟中断,即 timerinit()
这个函数,因此第 1 个核一直没有进入时钟中断处理函数里面。而进程切换就是在时钟中断里面做的,所以第 1 个核一直没有进程调度。
非常感谢您帮我们发现了这个bug,现在这个 bug 已经被我修好并且更新到 github 的代码中去了,您可以 git pull
更新代码再尝试一下。
from xv6-k210.
已经可以观察到双核调度了,非常感谢!
from xv6-k210.
Related Issues (10)
- 日志链接 HOT 6
- 关于xv6实验"Lab: System calls"中的一点问题 HOT 5
- 关于xv6中的per-process pagetable以及寄存器satp HOT 6
- userinit()无法通过 HOT 8
- 关于sdcard_test()中一个可能的bug HOT 6
- enter ISP mode failed HOT 3
- how to launch shell process? HOT 2
- 请教 k210 接收键盘输入出错 HOT 9
- 关于shell实现的问题 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xv6-k210.