Cargando…

C++ Atomics: An Overview

<!--HTML-->std::atomic introduced since C++11 is used as a building block for lock free programming. However while the default flags provide the maximum consistency; the do come with a performance penalty and may not be what you want in all cases. We will look under the hood, at a top level on...

Descripción completa

Detalles Bibliográficos
Autor principal: Lekshmanan, Abhishek
Lenguaje:eng
Publicado: 2022
Materias:
Acceso en línea:http://cds.cern.ch/record/2803362
_version_ 1780972788468678656
author Lekshmanan, Abhishek
author_facet Lekshmanan, Abhishek
author_sort Lekshmanan, Abhishek
collection CERN
description <!--HTML-->std::atomic introduced since C++11 is used as a building block for lock free programming. However while the default flags provide the maximum consistency; the do come with a performance penalty and may not be what you want in all cases. We will look under the hood, at a top level on what the processor sees when an atomic is encountered, the acquire and release semantics, which are fundamentally what mutexes use; and thus understand what the various memory order flags mean and when it is safe (or unsafe) to use them.
id cern-2803362
institution Organización Europea para la Investigación Nuclear
language eng
publishDate 2022
record_format invenio
spelling cern-28033622022-11-02T22:03:52Zhttp://cds.cern.ch/record/2803362engLekshmanan, AbhishekC++ Atomics: An OverviewEOS workshopHEP Computing<!--HTML-->std::atomic introduced since C++11 is used as a building block for lock free programming. However while the default flags provide the maximum consistency; the do come with a performance penalty and may not be what you want in all cases. We will look under the hood, at a top level on what the processor sees when an atomic is encountered, the acquire and release semantics, which are fundamentally what mutexes use; and thus understand what the various memory order flags mean and when it is safe (or unsafe) to use them.oai:cds.cern.ch:28033622022
spellingShingle HEP Computing
Lekshmanan, Abhishek
C++ Atomics: An Overview
title C++ Atomics: An Overview
title_full C++ Atomics: An Overview
title_fullStr C++ Atomics: An Overview
title_full_unstemmed C++ Atomics: An Overview
title_short C++ Atomics: An Overview
title_sort c++ atomics: an overview
topic HEP Computing
url http://cds.cern.ch/record/2803362
work_keys_str_mv AT lekshmananabhishek catomicsanoverview
AT lekshmananabhishek eosworkshop