|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+# hw8 - Simulation 1 - Antworten
|
|
|
2
|
+
|
|
|
3
|
+1. Helgrind markiert die richtigen Stellen im Code:
|
|
|
4
|
+
|
|
|
5
|
+ ```text
|
|
|
6
|
+ ==1930== Possible data race during write of size 4 at 0x60207C by thread #1
|
|
|
7
|
+ ==1930== Locks held: none
|
|
|
8
|
+ ==1930== at 0x400C9A: main (main-race.c:15)
|
|
|
9
|
+ ==1930==
|
|
|
10
|
+ ==1930== This conflicts with a previous write of size 4 by thread #2
|
|
|
11
|
+ ==1930== Locks held: none
|
|
|
12
|
+ ==1930== at 0x400C5A: worker (main-race.c:8)
|
|
|
13
|
+ ```
|
|
|
14
|
+
|
|
|
15
|
+2. Blah
|
|
|
16
|
+
|
|
|
17
|
+ 1.
|
|
|
18
|
+
|
|
|
19
|
+ 2.
|
|
|
20
|
+
|
|
|
21
|
+ 3.
|
|
|
22
|
+
|
|
|
23
|
+ 4.
|
|
|
24
|
+
|
|
|
25
|
+3.
|
|
|
26
|
+
|
|
|
27
|
+4.
|
|
|
28
|
+
|
|
|
29
|
+5. Blah
|
|
|
30
|
+
|
|
|
31
|
+ 1.
|
|
|
32
|
+
|
|
|
33
|
+ 2.
|
|
|
34
|
+
|
|
|
35
|
+ 3.
|
|
|
36
|
+
|
|
|
37
|
+ 4.
|
|
|
38
|
+
|
|
|
39
|
+6.
|
|
|
40
|
+
|
|
|
41
|
+7. Blah
|
|
|
42
|
+
|
|
|
43
|
+ 1.
|
|
|
44
|
+
|
|
|
45
|
+ 2.
|
|
|
46
|
+
|
|
|
47
|
+8. Blah
|
|
|
48
|
+
|
|
|
49
|
+ 1.
|
|
|
50
|
+
|
|
|
51
|
+ 2.
|
|
|
52
|
+
|
|
|
53
|
+9.
|