Memory Model: Get your shared data under control - Jana Machutová - Meeting C++ 2023

Поділитися
Вставка
  • Опубліковано 3 лют 2024
  • Memory Model: Get your shared data under control - Jana Machutová - Meeting C++ 2023
    Come to this talk to understand the C++ memory model and learn about shared data synchronization challenges and their solutions. You will find out how to use mutexes and atomics in illustrative examples.
    Sharing data in multi-thread programming may be tricky and there is plenty of options on how to deal with it. You should always go for the simplest possible scenario to not end up in trouble. In this talk, I will introduce common techniques available in C++. We will go through different examples to demonstrate how to use mutexes and atomics and I will show you how to simplify your code to involve as few critical points as possible.
  • Наука та технологія

КОМЕНТАРІ • 4

  • @mehtubbhai9709
    @mehtubbhai9709 5 місяців тому +19

    This is a fantastic presentation on the memory model and concurrency primitives. The analogies really brought the concepts home. I never knew that synchronization primitives could be explained by a holiday trip :) Thanks Jana!

  • @paxdriver
    @paxdriver 5 місяців тому +8

    Jana, please keep giving this talk. It'll get easier every time, don't worry lol very well done 👏

  • @SamWhitlock
    @SamWhitlock 5 місяців тому

    I was a bit skeptical at first, but this analogy she used through whole presentation is actually a great way to present this!

  • @marsob9038
    @marsob9038 5 місяців тому

    does this apply also to userland(green) threads - like in boost fiber ?