Atomic Data Types
摘要
In this chapter, we explain atomic data types. In the previous chapter, we explained threads, which are used for parallel processing operations. Race conditions happen if multiple threads are used in C programming. Races can be avoided using mutex functions. The alternative solution to the race problem is the use of atomic data types. Atomic data types show better performance than the use of mutex functions to avoid the race situations.