I assume that
p162 l27 should read
The value of flag is undefined in both prints on thread 0 and thread 1
the value of data is only well-defined in the second print.
and
p164 l 33 should read
...the statements on thread 0 and thread 1 may execute in either order.
best regards,
Dieter
typos on pages 162 and 164
Re: typos on pages 162 and 164
Thank you for your comments. I have reviewed them and have taken the following actions. If you disagree with my assessment, please let me know.
This comment is confusing because it deals with the example following it on the next page and not the example it is under. There is no print by thread 0 in the example it pertains to. I am not going to forward this comment for review, unless you would like the page break to be different.Dieter wrote: p162 l27 should read
The value of flag is undefined in both prints on thread 0 and thread 1
the value of data is only well-defined in the second print.
I have made sure that this comment has been added to the list of items to be reviewed before the draft is finalized.Dieter wrote: p164 l 33 should read
...the statements on thread 0 and thread 1 may execute in either order.