File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
2
* From two threads, work with members of a global variable. At every loop,
3
3
* each thread sets both members to the value passed in by pthread_create().
4
- * Before the assignment it checks whether the structure members are equal. If
5
- * not, the thread prints its identification character. There should be no
4
+ * Before the assignment it checks whether the structure members are equal.
5
+ * If not, the thread prints its identification character. There should be no
6
6
* races since access to the structure is protected by a mutex. No races means
7
7
* there is no output.
8
8
*
Original file line number Diff line number Diff line change 1
1
/*
2
2
* From two threads, work with members of a global variable. At every loop,
3
3
* each thread sets both members to the value passed in by pthread_create().
4
- * Before the assignment it checks whether the structure members are equal. If
5
- * not, the thread prints its identification character. You should see a lot of
6
- * races even on a single CPU system.
4
+ * Before the assignment it checks whether the structure members are equal.
5
+ * If not, the thread prints its identification character.
6
+ * You should see a lot of races even on a single CPU system.
7
7
*
8
8
* Any character printed means a race.
9
9
*
You can’t perform that action at this time.
0 commit comments