Producer Consumer using Semaphore In C++

Поделиться
HTML-код
  • Опубликовано: 31 май 2024
  • In this video we will learn how Producer Consumer works using semaphore in C++ programming language.
    Semaphore is a signalling mechanism and mutex is a locking mechanism.
    JOIN ME
    / @cppnuts
    / cppnuts
    TIME STAMPS
    00:00 Introduction
    01:04 Semaphore Working
    04:24 Program Explained
    #cppprogramming #multithreading #softwareengineer

Комментарии • 9

  • @pallavichaudhary6636
    @pallavichaudhary6636 3 месяца назад +1

    Very well explained in short. Thank you Sir!

  • @SatyamKumar-bw4vi
    @SatyamKumar-bw4vi 2 месяца назад

    Bhaiya, Please post this video mutex vs binary semaphore my interview is there. If I provide your explanation in the interview then the interviewer will be very happy. 😁😁

  • @user-lo6kh6qo2n
    @user-lo6kh6qo2n 3 месяца назад

    Hi rupesh
    could you pls help me how to implement arithmetic operations if class having two pointers as member variables?how to implement operator + inside class ?
    like wise below,
    class airthemetic operation
    {
    int *p1;
    int *p2;
    airthemetic operation(){}
    airthemetic operation operator+()
    {
    }};
    request you to please help me sir 🙏🙏

  • @veenaarchana
    @veenaarchana 3 месяца назад

    There were no pop up links when you suggested to watch another.
    Is this only happening for me?

    • @CppNuts
      @CppNuts  3 месяца назад

      No sorry i forgot to put it.
      I will put it in comments for now

    • @CppNuts
      @CppNuts  3 месяца назад

      Mutex VS Semaphore In C++
      ruclips.net/video/kd8b9Fr0Xbo/видео.html
      Producer And Consumer Problem
      ruclips.net/video/rKGq9AlfPR4/видео.html

  • @SatyamKumar-bw4vi
    @SatyamKumar-bw4vi 2 месяца назад

    Bhaiya, Please add the source code in description

    • @CppNuts
      @CppNuts  2 месяца назад +1

      github.com/cppnuts-yt/CppNuts/blob/12380166a89466b6b520b85efaa82039d0238961/Threading/8.0%20Producer%20Consume%20Problem%20In%20C%2B%2B.cpp
      This is the link to the code on github, please help yourself and try to find any other file you want. :)

  • @vvpChannel3112
    @vvpChannel3112 3 месяца назад

    Sir could you please make videos on ThreadPool ??