|
|
|
|
|
by beltsazar
1469 days ago
|
|
> "Oh, data race freedom isn't such a big deal, if you really need it, a garbage collected language like Java will give you that guarantee." Java programs aren't guaranteed to be free of data race. Java spec guarantees that if that happens, there will be no undefined behavior (like in C++). |
|
Now that I think about it, this must be the case, right? You have to get `synchronized` right in Java or else you won't get what you expect.