Parallel C++: Double Buffering

Поділитися
Вставка

КОМЕНТАРІ • 13

  • @shennnin
    @shennnin Рік тому

    wonderfully!!! And i Iwant to systematically learn parallel computing, which series should i start with? plz

  • @joao.penteado
    @joao.penteado Рік тому +1

    Awesome video as always! Is this approach always better than using a condition variable and a queue / linked list? I understand that buffering will likely result in less blocks, but it might result in longer waiting periods, especially for the processing thread.
    My guess is that if you fine tune and profile your buffer size very well according to the generator/processing execution times it will perform better. Let me know your thoughts!

    • @ItsBaffledd
      @ItsBaffledd Місяць тому

      Linked lists suck for any kind of iterative work like this, there are way too many cache misses involved

  • @trungthanhbp
    @trungthanhbp Рік тому +2

    nice

  • @naxnusternann332
    @naxnusternann332 Рік тому +1

    Awesome video

  • @starriet
    @starriet Рік тому

    What a wonderful video! Simple but great example, though we need some C++20 features such as span, binary_semaphore, jthread.
    Btw, I guess -pthread would be better than the -lpthread flag!
    Thanks for the great explanation ;)

    • @shubhneet2973
      @shubhneet2973 7 місяців тому

      This guy has a "C++ from scratch" playlist, where he explains all these C++20 features. That playlist is a pre-requisite for these videos.

  • @MaleeshaHuththo
    @MaleeshaHuththo Рік тому +1

    Good stuff!

  • @aviadsp
    @aviadsp Рік тому +1

    Wonderful

  • @sergeyrykovanov6396
    @sergeyrykovanov6396 Рік тому +1

    Very useful, thanks!