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
amazing video in clearing basic concepts
Thanks.. Keep sharing
The only person because of whom I am able to score in OSL in LPU
Thank you for showing this video and the code. It is very clear 👏👏👏
Amazing Sir You explained better than my Mam 🗿
Very much helpful basics clear sir
Thank you.
Thanks Sir 👍
Great video
Sir p should be 1 in output but its 52 or 53
Sir why my normal program without sleep is by default orphan in nature.?...I am getting garbage value
Because your parent is finishing before the child.. To guarantee that the parent finish after the child either use sleep or wait()
same
go through the concept of wait() system call once again
my parent is appearing on the screen but with a garbage value i think. is it normal !!!?
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
sir why both if else print?
Because there are two processes. One prints the if part and the other prints the else part
@@dextutor fork agr phle se inbuilt na hota to use kese krte fork function ko
Great video