Parallel C++: Double Buffering

แชร์
ฝัง
  • เผยแพร่เมื่อ 26 พ.ย. 2024

ความคิดเห็น • 13

  • @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

  • @shennnin
    @shennnin ปีที่แล้ว

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

  • @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 8 หลายเดือนก่อน

      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.

  • @sergeyrykovanov6396
    @sergeyrykovanov6396 ปีที่แล้ว +1

    Very useful, thanks!

  • @trungthanhbp
    @trungthanhbp ปีที่แล้ว +2

    nice

  • @aviadsp
    @aviadsp ปีที่แล้ว +1

    Wonderful

  • @naxnusternann332
    @naxnusternann332 ปีที่แล้ว +1

    Awesome video

  • @MaleeshaHuththo
    @MaleeshaHuththo ปีที่แล้ว +1

    Good stuff!