浏览代码

modified QUESTIONS.md to ensure peterson.s is called correct

svantja 8 年前
父节点
当前提交
39773e5f3b
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1
    0
      hw7/simu1/QUESTIONS.md

+ 1
- 0
hw7/simu1/QUESTIONS.md 查看文件

48
 Now let’s look at the code in `peterson.s`, which implements Peterson’s
48
 Now let’s look at the code in `peterson.s`, which implements Peterson’s
49
 algorithm (mentioned in a sidebar in the text). Study the code and see if you
49
 algorithm (mentioned in a sidebar in the text). Study the code and see if you
50
 can make sense of it.
50
 can make sense of it.
51
+To run `peterson.s` correctly, the -a flag has to be set with the values `bx=0,bx=1` to ensure that the two threads have different IDs.
51
 
52
 
52
 1. Now run the code with different values of -i. What kinds of different
53
 1. Now run the code with different values of -i. What kinds of different
53
    behavior do you see?
54
    behavior do you see?

正在加载...
取消
保存