Embedded Programming with Modern C++ Cookbook by Igor Viarheichyk

Embedded Programming with Modern C++ Cookbook by Igor Viarheichyk

Author:Igor Viarheichyk [Igor Viarheichyk]
Language: eng
Format: epub
Tags: COM000000 - COMPUTERS / General, COM082000 - COMPUTERS / Bioinformatics, COM006000 - COMPUTERS / Buyer
Publisher: Packt
Published: 2020-04-17T12:33:41+00:00


The resulting counter value is determined by the timeout intervals passed to the worker functions. Changing the type of memory order in the fetch_add method does not result in a noticeable change in the resulting value in our example. However, it can result in the better performance of highly concurrent applications that use atomic variables, because a compiler can reorder operations in concurrent threads without breaking the application logic. This kind of optimization is highly dependent on a developer's intents, and cannot be inferred automatically without hints from the developer.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.