In this question,only the number of child process was asked so the answer is 8,but if the question was like including the parent process, will the answer be 9 (8+1) or will it still be 8 ?. Considering the fact that parent process is already included.
I love how as he is trying to say "it creates a child" a child can be heard screaming in the background
thank you Dude... BTW we managed to form the formula prior to your describing (only after watching your lecture)!! :P
Akash Verma That's great!
very useful video. Thank you 😍
It would be very helpful if u could include some problems on memory management and deadlocks
Thanks,really easy to follow and understand.
videos are so helpful👌. Please upload solutions for further year like 2013 , 2014..........😊
very lucid elaboration... (thumbs up)
Ashish Gupta Thanks :)
thanks so much, that was very helpful
Really helpful!!! Thanks!!!
Respect boss.. great vid
seanslik1 Thanks :)
Does this code represent what you've shown in the diagram?
#include
#include
#include
#include
#include
int main (int argc, char **argv)
{
for (int i = 0; i < 3; i++)
{
pid_t pid = fork ();
if (pid == 0)
{
printf ("[Child] [i=%d] [pid=%d] [ppid=%d]
", i, getpid (), getppid ());
}
else
{
printf ("[Parent] [i=%d] [pid=%d] [ppid=%d]
", i, getpid (), getppid ());
}
}
}
u could have omit the brackets on ur ifs, cos on those blocks u have only 1 command on
gr8 work , have you published any book regarding gate or take online classes please inform
Sandeep Verma I haven't written any book, just make educational videos and teach sometimes if people want :) thanks btw
In this question,only the number of child process was asked so the answer is 8,but if the question was like including the parent process, will the answer be 9 (8+1) or will it still be 8 ?. Considering the fact that parent process is already included.
+Kushal Joshi Answer is 7 not nine please watch it again
- via YTPak(.com)
hai.... How to determine the thread instead of processes?
you will have to specify the settting. The code and which call is creating thread.
thanks for this video..
thank ya... sir..
Thank u bro
Good
commantaire zwin
Dude wtf is happening at 1.28 XDDDDDDDDD
THANK YOU