Kiprey / Kiprey.github.io

This is Kiprey‘s Blog.
https://kiprey.github.io/
4 stars 3 forks source link

uCore实验 - Lab6 | Kiprey's Blog #47

Open Kiprey opened 3 years ago

Kiprey commented 3 years ago

https://kiprey.github.io/2020/09/uCore-6/

一个充满无尽乐趣的blog

chapche commented 1 year ago

这里BIG_STRIDE的值给的不对;简单来说,32位机器BIG_STRIDE的取值范围应该是[PRIORITY_MAX, INT_MAX+ PRIORITY_MAX], PRIORITY_MAX是保证每个进程在stride_pick_next的时候至少累加1;最大值INT_MAX+ PRIORITY_MAX不知道该怎么解释,算是经验值,下面给出一个例子:

define BIG_STRIDE 0x7FFFFFFF