Skip to content

Commit

Permalink
Darker font because some folks get headaches reading gray-on-gray. Gr…
Browse files Browse the repository at this point in the history
…ammar-o fix
  • Loading branch information
lahosken committed Aug 10, 2012
1 parent 3515c62 commit 5d16ad5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions web/_posts/2011-05-10-lesson.textile
Original file line number Diff line number Diff line change
Expand Up @@ -200,11 +200,11 @@ class Person(var name: String) {
}
</pre>

This program is not safe in a multi-threaded environment. If two threads have references to the same instance of an Adder and call @add@, you can't predict what @i@ will be at the end of both calls. It could be 2, it could be 1!
This program is not safe in a multi-threaded environment. If two threads have references to the same instance of Person and call @set@, you can't predict what @name@ will be at the end of both calls.

In the Java memory model, each processor is allowed to cache values in it's L1 or L2 cache so two threads running on different processors can each have their own view of data.
In the Java memory model, each processor is allowed to cache values in its L1 or L2 cache so two threads running on different processors can each have their own view of data.

Let's talk about some of the tools that force threads to keep a consistent view of data.
Let's talk about some tools that force threads to keep a consistent view of data.

h2. Three tools

Expand Down
12 changes: 6 additions & 6 deletions web/bootstrap-1.1.0.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5d16ad5

Please sign in to comment.