Skip to content

Commit

Permalink
Address text consistency and merge related statements
Browse files Browse the repository at this point in the history
- Changed "doesn't" to "does not" for formal English writing
- Fixed the inconsistency of quotation marks
- Merged related statements into one paragraph
  • Loading branch information
yutingshih committed Jul 23, 2024
1 parent 81b7ce4 commit 99a06b1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions concurrency-primer.tex
Original file line number Diff line number Diff line change
Expand Up @@ -1092,9 +1092,8 @@ \section{Memory orderings}

\subsection{Memory consistency models}

When a program is compiled and executed, it doesn't always follow the written order.
When a program is compiled and executed, it does not always follow the written order.
The system may change the sequence and optimize it to simulate line-by-line execution, as long as the final result matches the expected outcome.

This requires an agreement between the programmer and the system (hardware, compiler, etc.), ensuring that if the rules are followed, the execution will be correct.
Correctness here means defining permissible outcomes among all possible results, known as memory consistency models.
These models allow the system to optimize while ensuring correct execution.
Expand Down

0 comments on commit 99a06b1

Please sign in to comment.