O'Reilly logo

Efficient C++ Performance Programming Techniques by David Mayhew, Dov Bulka

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Multithreaded and Synchronization Terminology

This is not the first time in this book that we have run into synchronization terminology. We have already used terms such as synchronization, serialization, critical sections, race condition, and locks. We never really explained them, and it is time to step back and clarify the terminology.[1] The first issue is presenting the problem: What is the problem that all that terminology is trying to address?

[1] It does not help at all that Java has overloaded the term “serialization” to mean something entirely different and unrelated to synchronization.

Take a simple code statement such as

x = x + 1;

If two threads execute this statement, we expect the resulting value stored in x to be x+2. Any other ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required