Dining Philosopher Problem program in C

Поділитися
Вставка
  • Опубліковано 16 гру 2024

КОМЕНТАРІ • 32

  • @farooqishaq6974
    @farooqishaq6974 2 роки тому +4

    Excellent explaination

  • @theodoremasi5313
    @theodoremasi5313 4 місяці тому +2

    Life saver❤❤

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

    Just Brilliant 🤗

  • @golden_harp9303
    @golden_harp9303 2 роки тому +1

    Very helpful. Thanks allot 😀

  • @pradhanan9413
    @pradhanan9413 3 роки тому +2

    Awesome sir👌👌

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

    This is amazing however, this might create a deadlock, try asymmertic solution

  • @navneetkaurpopli2766
    @navneetkaurpopli2766 2 роки тому

    These are amazing videos. Do you plan to create more video labs on systems programming? Say network programming or device driver interaction or ARM?

  • @hemanthnaik3644
    @hemanthnaik3644 2 роки тому +1

    if all philosopher picked their left chopsticks which is possible in this code then we can get dead lock
    is it correct ?

    • @dextutor
      @dextutor  2 роки тому +1

      Yes

    • @hemanthnaik3644
      @hemanthnaik3644 2 роки тому

      @@dextutor thank you for reply sir

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

      Yeah in that case do something like if all philosophers have taken left fork then for last philosopher first take right fork and then take left fork

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

    link for the code is not accessible

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

    Great video but two questions I have: 1. What if the philosopher puts down first the right then left chopsticks, would it make any difference? (it seems to me it wouldn't) 2. Why different outputs produce different order of iterations?

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

      1. No it won't
      2. Because the simulation is such that the philosophers pick chopsticks at random hence the iterations are diff

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

      @@dextutor thank you for your teachings!

  • @Luan-hy5rl
    @Luan-hy5rl 2 роки тому

    nice video man! just one question, what is the type of the semaphore used? is it a binary semaphore?

  • @udaygarg7735
    @udaygarg7735 3 роки тому

    plz make video on bankers algorithm

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

    @DexTutor I'm running the code in vs code and it is not accepting these header files like semaphore.h what should I do

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

    Can we complie this in online pls answer sir

  • @Jerusha.Siddharapu
    @Jerusha.Siddharapu 2 роки тому

    Sir, please can you share producer- consumer problem in c

  • @wysetechhub
    @wysetechhub 2 роки тому

    There's an error in the code

  • @dhananjayadhari6481
    @dhananjayadhari6481 11 місяців тому

    Sir in this code there is a possibility for deadlock