Process ID | Write Your Own Shell | Part 1

Поделиться
HTML-код
  • Опубликовано: 5 июн 2022
  • Gonna be walking you guys through seven basic concepts you need to create your own shell.
    🔗 Hi there🙂👋🏽, Connect with me on LinkedIn
    / jessinspired
  • НаукаНаука

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

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

    pid_t is supposed to be an "unsigned" data type not "signed" datatype, this is the same reason why you used %u for unsigned. so you need to correct this, else it will be misleading to beginners. Your videos are very good anyways, keep it up.

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

      Hello, glad you pointed this out.. Actually from the man pages.. It says pid_t is a SIGNED integer data type; then "why use a %u would be natural follow up question". The thing is a lot of people use %u because the pid returned by getpid is always positive (In Unix like operating systems).
      Please go ahead and verify it and let me know what you see. Always open to learn and be corrected. Cheers..

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

      @@jess-inspired i guess you’re right, normally _t represents an unsigned integer (32 bit), but in this case they’re making the program portable across platforms, regardless of whether, e.g., a PID is 16 or 32 bits or 64 bit, therefore making it signed. This makes sense. Thank you. 🙏

    • @TechgirlieandherTechworld
      @TechgirlieandherTechworld 10 месяцев назад +1

      @@josephjohn4810 Thank you all for this discussion, actually learnt more😁

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

      In addition, another reason the pid_t is signed is so you'll be able to handle the -1 return value if the system call fails. (That is for system calls that actually can fail, getppid and getpid are exempted in this case (they are always successful))

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

    Very much simplified!... thank you Jesse!!!

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

    Amazing video Jessi. You are great at simplifying SE concepts. Good job and looking forward to the next video

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

    Your video is indeed inspiring as you take your time to explain the concepts with clarity. I can't wait to watch the upcoming videos!

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

    Thanks Jesse, this is amazing.

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

    very clear illustrations. more videos please.

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

    Keep the videos coming please, this is really good.

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

    You just simplified the pid to my understanding, thanks....

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

    Thanks jesse this so clear God bless you

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

    The clarity is 💯

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

    Great work Jesse 👍

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

    Nice one Jesse 👍

  • @mathewtuwei1031
    @mathewtuwei1031 7 месяцев назад

    Brother I got to give it to you.🙌🙌🙌🙌.
    You teach way better than any other person Ive listened to so far.
    I was giving up on this thing Until I came across your tuitorials.
    ALX should hire you

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

    Wow. Everything is beginning to make sense about this shell thing. Thank you so much

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

    Clear explanation.!

  • @gadvingitamo2019
    @gadvingitamo2019 9 месяцев назад

    Good explanation. Keep it up

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

    Jessi, you're amazing, Thanks so much for this. Thank you so much. You're great.

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

    Nice thanks a lot man

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

    Without good creators like you.
    We that mostly learn best by watch videos than read will not survive.
    Thanks a lot for your detailed content and explanation.

  • @dadashussein
    @dadashussein 5 месяцев назад

    Thank you

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

    Currently watching and honestly most of all the things I read are beginning to make sense. I might actually become a software engineer after all 😅. Thank you!!!

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

      Glad they're making sense. You sure have all it takes to become an SE, and a great one at that. You're welcome

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

    Great audio and great content. simple and short.. thank you

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

    for my cute minishell~!!

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

    I must comment that you are the best ALX instructor i have come across, you have helped me a lot for the shell project ALX. if I had a mean I can subscribe to your channel 1 million times. Thanks you so much, please do more videos on the printf project. GOD bless you bro, your place dey. #ALXcohort9

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

    God bless you sir,what a wonderful explanation 👍... Keep it up it is helpful

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

      You're very much welcome. Glad to be of service..

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

    nice

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

    so nice bro . thanks

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

    Thanks a lot, bro. I'm doing the project during break0 because I had midterm exams, and this is quite helpful.
    I would be so grateful if you could make videos on printf project.

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

      Youre welcome.. Glad its helpful. Yeah, really considered the printf.. Let's see how it goes.

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

    Good Stuff... Concise to say the least...

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

    🥂

  • @VALUE95
    @VALUE95 7 месяцев назад

    Nice video sir.
    I also want to ask: Why did you use the format specifier %u to print the PID since you mentioned that it is a signed integer?

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

    Thanks Jess. Your tutorials are short, clear and precise. Is pid_t data type signed or unsigned? You wrote 'signed' in the explanation but you used unsigned in your format specifier .

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

      Thanks a lot. Great observation. A viewer asked this question some time ago too in the comments; just pinned our conversation where I explained it. Feel free to check it out.. Cheers

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

    I don't know to get Man Page. Please help me.

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

    the pid_t was it defined using a typedef??

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

      Not sure about this, haven't looked at standard libraries.. I know it's defined in the sys/types.h header file and the unistd.h.. Including any of those header files gives you access to pid_t

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

      @@jess-inspired thanks Jesse, i will check those libraries and give you feedback

  • @ItachiUchiha-ks6lk
    @ItachiUchiha-ks6lk Месяц назад +1

    for those--->> this series is not completed yet.... and you wont be getting your own shell even after completing this 10 videos :(

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

    Pls do I have a whatsaap or telegram platform?

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

      t.me/alxsupportgroup
      Hello Amarachi..
      Not my group though but you can find me here..
      Cheers..

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

    Hello boss plz how can I contact you