Browse Source

Merge pull request #23 from svantja/hw7

QUESTIONS.md peterson algorithm
Michael Mächtel 8 years ago
parent
commit
ee1fca7414
No account linked to committer's email address
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      hw7/simu1/QUESTIONS.md

+ 1
- 0
hw7/simu1/QUESTIONS.md View File

@@ -48,6 +48,7 @@ is the lock acquire written? How about lock release?
48 48
 Now let’s look at the code in `peterson.s`, which implements Peterson’s
49 49
 algorithm (mentioned in a sidebar in the text). Study the code and see if you
50 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 53
 1. Now run the code with different values of -i. What kinds of different
53 54
    behavior do you see?

Loading…
Cancel
Save