Orphan Process Program in Linux

Поделиться
HTML-код
  • Опубликовано: 18 июн 2020
  • In this lecture on the orphan process program in linux, you will learn how to write a program to simulate the creation of an orphan process in Linux using the C language. An orphan process is a process without a parent process i.e., a child process whose parent process finishes before the process itself.
    Subscribe - / dextutor
    This lecture is part of the Operating System Lab playlist: • Operating System Lab
    For Program code and more details visit: dextutor.com/program-to-creat...
    Reference Videos:
    1. Process Creation: • How to create child pr...
    2. Zombie process: • Zombie Process Program...
    3. Replacing Process image: • How to Replace Process...
    Tools Required:
    1. Linux environment
    2. Basic knowledge of C Language
    3. gcc compiler installed
    Reference Links:
    Operating System Theory PPTs Link: dextutor.com/courses/operatin...
    Operating System Programs: dextutor.com/courses/operatin...
    Other Playlists:
    OS: • Operating System
    Linux Essential: • Linux Tutorial For Beg...
    RHCSA: • RHCSA Exam Full Course
    Was this tutorial about the orphan process program in Linux helpful? If so, please share. Let me know your thoughts in the comments.
    #linux #oslab #os #dextutor #process #orphan

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

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

    amazing video in clearing basic concepts

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

      Thanks.. Keep sharing

  • @shreyashpandey9196
    @shreyashpandey9196 Год назад +7

    The only person because of whom I am able to score in OSL in LPU

  • @echocheng7205
    @echocheng7205 12 дней назад

    Thank you for showing this video and the code. It is very clear 👏👏👏

  • @riteshbisht0903
    @riteshbisht0903 7 месяцев назад +1

    Amazing Sir You explained better than my Mam 🗿

  • @FaizMohan
    @FaizMohan 3 года назад +3

    Very much helpful basics clear sir

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

    Thank you.

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

    Thanks Sir 👍

  • @rachiaro
    @rachiaro 11 месяцев назад +1

    Great video

  • @sherrymalik5212
    @sherrymalik5212 14 дней назад

    Sir p should be 1 in output but its 52 or 53

  • @kholiatorsss5238
    @kholiatorsss5238 2 года назад +2

    Sir why my normal program without sleep is by default orphan in nature.?...I am getting garbage value

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

      Because your parent is finishing before the child.. To guarantee that the parent finish after the child either use sleep or wait()

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

      same

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

      go through the concept of wait() system call once again

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

    my parent is appearing on the screen but with a garbage value i think. is it normal !!!?

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

      No.. The parent must print correct value of PID..the child should get either 1 or some random value for PPID because the parent has terminated and the child is trying to print the parent PID

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

    sir why both if else print?

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

      Because there are two processes. One prints the if part and the other prints the else part

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

      @@dextutor fork agr phle se inbuilt na hota to use kese krte fork function ko

  • @rachiaro
    @rachiaro 11 месяцев назад +1

    Great video