question : what happens when the parent process dies first? does it not create a zombie process? and if so how did the program work after killing the parent process? thank you for the content sir keep it up!
Pipe is an example of a Linux system call which is a service that the operating system provides that applications can call, for example there are also system calls for opening files and writing to files and much more. Check out my video about Linux System Calls for a more basic example.
if the parent terminates and the child is still not finished, the child will continue as usual but will become an orphan process: en.wikipedia.org/wiki/Orphan_process
You summarized my 4 two-hour operating system classes in 4 minutes. Thanks
Stumbling upon your channel is one of the greatest things that happened to me in 2023. Keep up the great work!
Also, can you do one on grep? XD
Thanks :)
Yes, grep is a good idea, very powerful and useful command
question : what happens when the parent process dies first? does it not create a zombie process? and if so how did the program work after killing the parent process?
thank you for the content sir keep it up!
your content is just amazing!
=
writing code in vim is so difficult - big respect
mind blown, hopefully one day I'll actually understand stuff like this
Pipe is an example of a Linux system call which is a service that the operating system provides that applications can call, for example there are also system calls for opening files and writing to files and much more. Check out my video about Linux System Calls for a more basic example.
@@nirlichtman oh, I mostly understand that part
it's the actual low-level magic in the code I don't get
@@phatboislym what specific part of the code? I can help explain
Perfect explanation!
Well, I thought I know pipes. Almost didn't watch the video. Turns out I didn't
How would this work on Windows?
I'm watching these videos in the background while I do other things lol
Can child process continue when main has returned (does return means parent process is terminated?)?
After the fork both processes continue from the same line but are independent of each other so if one finishes it does not affect the other
@@nirlichtman but i thought in linux if parent terminates, then child will be terminated as well..
if the parent terminates and the child is still not finished, the child will continue as usual but will become an orphan process: en.wikipedia.org/wiki/Orphan_process
i see.
This made no sense 😹