Impact of volatile and atomic on performance

Marc Brooker posted an interesting breakdown on the performance impact on use of volatile and atomic. He also points out that volatile alone doesn’t prevent concurrency issues – if you need synchronisation, then you need atomic.

Leave a comment

Filed under C++

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.