Zombie Process Clarification | Write Your Own Shell | Part 4

Поделиться
HTML-код
  • Опубликовано: 12 июн 2022
  • Hello fam! This video is dedicated to address the slight errors in my previous upload where I talked about the fork system call.
    Cheers
    🔗 Hi there🙂👋🏽, Connect with me on LinkedIn
    / jesse-braide-4a2235243
  • НаукаНаука

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

  • @ygr4943
    @ygr4943 8 месяцев назад +2

    Explained beautifully

  • @AdvaTced
    @AdvaTced Год назад +1

    note that it's not always adopted by the main process( PID 1 ) sometimes it get adopted by some PID that is the PID of the user ( that eventually part of the PID 1 obviously ).

  • @josephjohn4810
    @josephjohn4810 Год назад +1

    You are very good. ❤

  • @dozieukah4548
    @dozieukah4548 Год назад +3

    Nice content, couldnt help but subscribed.. would love to see more. well done

    • @jess-inspired
      @jess-inspired  Год назад

      God helping, more is sure to come. Glad you liked it..

  • @onlinezilla6059
    @onlinezilla6059 2 года назад +1

    Thanks for the clarification, Jesse.

  • @onwunzoamara
    @onwunzoamara Год назад +2

    Thanks for the clarification Jesse

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

    what a cool explanation

  • @iradufashaBikri
    @iradufashaBikri 6 месяцев назад

    - > The unit process adopt the orphan.
    -> After the orphan finish executing, unit process collect exit statuses of orphaned processes.
    -> Unit process removes the orphan from the process table.
    ----------Zombie process---------
    - If a parent process does not promptly collect the exit status of its terminated child using wait() or waitpid(), the child process becomes a zombie process.
    - A zombie process still has an entry in the process table, but it does not consume system resources. It remains in the process table until the parent collects its exit status.
    - Once the parent collects the exit status, the zombie process is removed from the process table.

  • @fbetul7
    @fbetul7 Год назад

    perfectt sir!!😇

  • @loveafinni
    @loveafinni 11 месяцев назад

    Thank you so much for this detailed explanation!

    • @jess-inspired
      @jess-inspired  10 месяцев назад

      The pleasure's all mine. Cheers🚀

    • @mahmouda3218
      @mahmouda3218 10 месяцев назад

      @@jess-inspired pro you will complete this series ?

  • @Al-khayr.2002
    @Al-khayr.2002 2 года назад +1

    Thanks Jesse

  • @muhammadusman5521
    @muhammadusman5521 Год назад +2

    in my case the parent process died and the child process was adopted by 1333 which appears to be the systemd program. This fork systemcall was difficult yet amazing.

    • @AdvaTced
      @AdvaTced Год назад +1

      note that it's not always adopted by the main process( PID 1 ) sometimes it get adopted by some PID that is the PID of the user ( that eventually part of the PID 1 obviously ).

  • @onwunzoamara
    @onwunzoamara Год назад +1

    Clearly understood

  • @okunoyesouleiman9117
    @okunoyesouleiman9117 Год назад

    It's like you sabi pass these people oo. thanks boss. New subscriber

  • @yi2tech842
    @yi2tech842 2 года назад +1

    Tnx Jesse

  • @mychaelwunnam7893
    @mychaelwunnam7893 8 месяцев назад

    I was thinking you would use getppid to get the PPID, because using getpid will return the PID of the current process, or do they all work the same?

  • @abdulshahididal793
    @abdulshahididal793 Год назад +2

    From Timestamp 9:19, I think it should be "getppid()" for the PPID (Parent Process IDentifier) not "getpid()" because "getpid" is for PID (Process IDentifier). Thanks for the help. Appreciate!!

    • @jess-inspired
      @jess-inspired  Год назад +3

      Hello Abdulshahid. You do have a point. Howbeit I used getpid() in the parent block because the pid of the parent is the ppid of the child..
      getppid() would sure have been more appropriate if I used it in the child block..
      Thanks for your observation though, much appreciated. .

    • @shaheed007
      @shaheed007 Год назад

      @@jess-inspired it was actually at 8:33 timestamp mark. Thanks though!

  • @Sameh_ElGazar
    @Sameh_ElGazar 8 месяцев назад

    so , u are explaining the orphan not zombies?!

    • @jess-inspired
      @jess-inspired  8 месяцев назад +1

      Yeah, although I did slightly touch on the zombie here.. Mixed up the names previously.. Apologise for whatever confusion it may have caused