Linux Internals - Process Management

Поделиться
HTML-код
  • Опубликовано: 16 май 2024
  • In this episode of the CyberGizmo we explore how the Linux Process Management works, how programs become processes, how LINUX manages these process, and the State Machine behind the curtain that keeps it all straight. Also how Linux uses fork and exec to create new processes.
    Support me on Patreon: / djware
    Follow me:
    Twitter @djware55
    Facebook: / don.ware.7758
    Discord: / discord
    Music Used in this video
    "NonStop" Kevin MacLeod (incompetech.com)
    Licensed under Creative Commons: By Attribution 3.0 License
  • НаукаНаука

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

  • @diegonayalazo
    @diegonayalazo 2 года назад +5

    Thanks DJ for sharing your knowledge in such a digestible way. You are an inspiration! Keep up the good work

  • @rotrose7531
    @rotrose7531 3 года назад +2

    These knowledge are the very thing I am hunger for as a sys admin. Please continue to share these deep talk of Linux.

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

    Thank you, your clear explanation has given me peace.

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

    Another great explanation, thank you!

  • @vasuatgiet
    @vasuatgiet 2 года назад

    I am very much happy with the video...Thanks DJ Ware

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

    Thank you for such a wonderful explanation..

  • @dimitardanov
    @dimitardanov 3 года назад +7

    Thank you for the series. Much appreciated.

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

    This was a good one. I've been working through these for continuing education at work. Some of them are a little boring, just because I already know parts of all this (so that's no criticism - they'd be great for someone not familiar), but this one was on some details I hadn't delved into before. So thanks for a very clear presentation and keep up the great work! Stay safe!

  • @AmIRealYouTube
    @AmIRealYouTube 28 дней назад

    Very informative. Thank you!

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

    @DJ This is good stuff. I don't know how old these videos are but this is definitely more the 'education' stuff for guys like myself.

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

    Sir thank you very much for this series. Very nice content . Very informative ..Appreciate

  • @user-mr3mf8lo7y
    @user-mr3mf8lo7y Год назад

    Much obliged.

  • @ajaynair3366
    @ajaynair3366 3 года назад +1

    I have an interview tomorrow and this is very helpful!

    • @CyberGizmo
      @CyberGizmo  3 года назад

      Good Luck with the interview

  • @emvdl
    @emvdl 3 года назад

    Thanks, these in depth videos are so great! 👍 Didn’t know the word: “Zombie-Walk”, now I do 😀🖖

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

    Great video

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

    These videos are awesome! Helping me refresh concepts and prepare for interviews. Do you have a link to these slides?

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

    👍👍- Gracias, senor!

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

    Nice introduction Tasks relativ scheduled are the best processes

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

    Thanks

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

    Awesome tutorials. Can you send a link to the slides ?

  • @tamos2006
    @tamos2006 2 года назад

    gold

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

    At 2.20ish you mentioned that each process will have a pid and this will be a number generated by the system. this number has a limit and then it will be recycled back through the numbers. can you please tell me what is that number (the limit) and also doco relating to that? Thank you.
    Your content is excellent, please keep going esp with Internals... :)

  • @abdallahrashed1947
    @abdallahrashed1947 3 года назад +1

    I was waiting to understand the difference between threads and processes, wish you talk about it

    • @CyberGizmo
      @CyberGizmo  3 года назад +4

      I see from the poll so far people want more on the internals so will put together a few more videos and will had you request to the list Abadallah.

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

      @@CyberGizmo The internals are fascinating from your PoV

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

    comment 2
    @DJ
    Do you think you could do a video or so on how a protocol works with its functions on 2 machines(which is ultimately expanded beyond that)? Like when IP sends out to another device- what is the other side wating for or how does it know what to send back like which functions to use? Does that make sense?
    Or if you are familiar with BGP (and I'm sure you are) how would that work on a 'smile level' (even overly simplified)?
    Are those functions packed in the same 'while'/'for' loop or are they separate? How does the other device know which function to use to address what it is receiving and then send out (if necessary) and visa-versa? So basically 'how are they 'talking' to each other with knoledge of what they are saying/expecting?
    DJ, I was saying this for video stuff- not to have you literally writing it all here. I'm sure that would take a while to do
    Thank you

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

    The freaky thing (annoying) about zombies is that they don't or can't trap signals anymore. You find a defunct a.out because your program locked up somewhere, but you can't kill -9 it as it's already marked defunct. It gets even more freaky when the process you were trying to evict was a hung "mount" command, say due to a hung NFS mount point. You get fed up and kill the mount process, but you can't kill it as it's blocked in kernel space, the process disappears, you get your shell back, but the mount command stays as a defunct zombie for a while. Hung NFS mounts are evil.

  • @RobinSingh-md1sh
    @RobinSingh-md1sh 2 года назад +2

    Thanks for the video. However I believe your description of zombie process is wrong and you actually described an orphaned process. What are your thoughts?

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

      So first, all processes are spawned via a fork call. The "official" UNIX definition is the one I use, even for Linux is: A process which has finished the execution but still has entry in the process table to report to its parent process is known as a zombie process. A child process always first becomes a zombie before being removed from the process table. The parent process reads the exit status of the child process which reaps off the child process entry from the process table.

    • @RobinSingh-md1sh
      @RobinSingh-md1sh 2 года назад

      @@CyberGizmo thanks for the super prompt reply. Appreciate it. And yes this definition sounds right.

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

    Out of the 8 modules, which one should I start with and in what order?

    • @CyberGizmo
      @CyberGizmo  2 года назад

      They are all independent wanted to put them together so each one stood alone.

  • @lunaeclipse5768
    @lunaeclipse5768 2 года назад

    im on my way on backend, am i doing right being ended up here?

    • @CyberGizmo
      @CyberGizmo  2 года назад

      You're fine, I tried to put these together so you didnt have to do them in a particular order

  • @anonymous.youtuber
    @anonymous.youtuber 2 месяца назад +1

    Hehe somehow you look some 20 years younger. The guru look was also ok though. 😉

  • @M0rn1n6St4r
    @M0rn1n6St4r 3 года назад +1

    What happened to Part 1? After noticing that "Linux Internals - SysCalls" was the first in a _series_ of videos, I decided I would make a playlist to "binge-watch" later. I finally stopped procrastinating... creating the playlist, now. I recall seeing "...Part 1: Process Management" prior to today, but I cannot find it.

    • @CyberGizmo
      @CyberGizmo  3 года назад +2

      I bet you were looking for the video at the same time I was creating a playlist for them, the play list is called Linux Internals and should have all of them in there. Cheers

    • @M0rn1n6St4r
      @M0rn1n6St4r 3 года назад

      @@CyberGizmo: If only you had acted sooner. I've already created my own playlist. My procrastination could have yielded the pleasant surprise: someone else already took care of this. :-)

    • @M0rn1n6St4r
      @M0rn1n6St4r 3 года назад +1

      @@CyberGizmo: Uhh... it is absent from your playlist, too. I cannot find it by searching your channel. Perhaps you changed the privacy setting on that video?

    • @CyberGizmo
      @CyberGizmo  3 года назад +1

      I see it marked public look for Process Management

    • @CyberGizmo
      @CyberGizmo  3 года назад

      Try this ruclips.net/video/Ip9P1XJt5PI/видео.html

  • @77jaykb
    @77jaykb Год назад +1

    I think the zombie process definition is not accurate. When a parent dies, its just a running orphan process which will be adopted by init. Zombie is when the child is already dead but it continues to use reasources - and the parent doesnt/canot do anything about it.

  • @harikrishnan2698
    @harikrishnan2698 3 года назад +1

    25:03 , isn't it orphan process ?
    en.wikipedia.org/wiki/Orphan_process

    • @CyberGizmo
      @CyberGizmo  3 года назад +2

      You are quite correct, Hari and thanks for catching that.

  • @lunaeclipse5768
    @lunaeclipse5768 2 года назад

    who thought that process management was BPM (bussiness process management)?

    • @CyberGizmo
      @CyberGizmo  2 года назад

      Can you just image an BPM expert writing OS code omg

    • @lunaeclipse5768
      @lunaeclipse5768 2 года назад

      @@CyberGizmo hahaha i forgot the OS part, when researching

  • @lunaeclipse5768
    @lunaeclipse5768 2 года назад

    sir why u dont have any beard like long beard, thanks btw

    • @CyberGizmo
      @CyberGizmo  2 года назад

      hahah shaved it off long ago :)