Illustration on fork() system call

Поділитися
Вставка
  • Опубліковано 7 січ 2025

КОМЕНТАРІ • 140

  • @shubhendumeher7946
    @shubhendumeher7946 7 років тому +55

    engineering colleges in India need teachers like you sir.

    • @vasanth.s1658
      @vasanth.s1658 7 років тому

      Shubhendu Meher Absolutely crt...Our Engineering professors are totally waste.they dont know the way how to teach the students....

    • @AKHILDS-j3v
      @AKHILDS-j3v 6 років тому

      corect...............this bro is amazing

    • @ommandavia
      @ommandavia 5 років тому +1

      Engineering Universities all around the globe TBH

  • @RegretForNothing
    @RegretForNothing 5 років тому +17

    You should rename this channel to TechStud.
    Also thanks for passing me through my basic OS class.

  • @rodryford98
    @rodryford98 3 роки тому

    You just saved my 2020/2021 last exam in 2017. A man from the past who will change a simple guy future. Thank you, for real

  • @SakshiSingh-arcane05
    @SakshiSingh-arcane05 4 роки тому +6

    Great Explanation, have been confused for so long about this!

  • @chloekimball536
    @chloekimball536 6 років тому +1

    It is very noble of you to offer free resources of this high quality! I should pay you instead of my uni instructor.

  • @shristiuniyal6792
    @shristiuniyal6792 5 років тому +16

    i think atleast our teachers should see this one night before they teach us in class.

  • @kayraahuja8956
    @kayraahuja8956 5 років тому +8

    He is such a genius... I never comment on any video....but today... I couldnt resist myself from it.... Love u sir🤗🤗

  • @danialahmed8454
    @danialahmed8454 6 років тому +2

    love u boy you did what my even Phd teacher cant

  • @vipingautam1257
    @vipingautam1257 4 роки тому +2

    Just one word-- Amazing..

  • @yassineyounes2308
    @yassineyounes2308 3 роки тому

    Thank you Mr now I will succeed in my S.Ex Avancé test

  • @shubhamalchetti2157
    @shubhamalchetti2157 6 років тому

    Good explanation, I am sure no one will explain in such simple way and in full detail. Excellent Thank you so much

  • @ajaypasagada4089
    @ajaypasagada4089 6 років тому

    I liked this...this is very help full and clear for a beginner who is trying to implement a parallel processing task...thank you

  • @satyarock6517
    @satyarock6517 3 роки тому

    Finally got something i was eagerly searching..thanks a lot for such a great explanation.

  • @dyjadiop1775
    @dyjadiop1775 4 роки тому

    Very Good Explanation!! Thank you sir! you just saved my life for the exam

  • @ren2674
    @ren2674 2 роки тому

    engineering colleges in the US need teachers like you sir.

  • @dionajilakmin
    @dionajilakmin 7 місяців тому

    now it's not confusing anymore!
    thanks man

  • @legend7890
    @legend7890 4 роки тому

    watched both of your videos. Very clear explanation , thank you very much

  • @jinip451
    @jinip451 2 роки тому

    Sir , god bless you , I thoroughly understood , i was confused with this fork.

  • @prashantbohra2620
    @prashantbohra2620 3 роки тому

    Very nicely explained sir. My all doubts are cleared. Thankyou so much!

  • @simpleepic
    @simpleepic 3 роки тому +3

    Again perfect explanation. Well done. Also can you explain about fork() sys call inside a for loop? Then the viewers will be able to properly understand how these address spaces share among the child processes. Thank you again.

  • @nikhilbagaria8507
    @nikhilbagaria8507 6 років тому

    What a concept building sir.... Awesome video.... Hope that i have seen it in the very first day 👍👍👍

  • @nisaazeem6858
    @nisaazeem6858 2 роки тому

    Please make more videos on operating system your are really a great teacher

  • @samirzerrouki9140
    @samirzerrouki9140 6 років тому +1

    thank you sir

  • @zwljas7839
    @zwljas7839 7 років тому

    Thank You so much for this video and the 1st video of Fork()

  • @shalikaashan7924
    @shalikaashan7924 6 років тому

    Thank you sir. Now i can understand system call.

  • @saisantoshambati6818
    @saisantoshambati6818 4 роки тому

    Very well explained!! Great job

  • @damineesao7822
    @damineesao7822 7 років тому

    Guruji.. It is really nice and helpful.

  • @isaccnewton100
    @isaccnewton100 4 роки тому

    You think like a runtime environment, well done

  • @muhammadsafiullah8428
    @muhammadsafiullah8428 5 років тому +2

    Thanks for such a great explanation. I don't know why I am paying so much fees in university. The lecturers are waste.

    • @hamzakayani4859
      @hamzakayani4859 4 роки тому

      exactly man they are just completing the credit hours anyhow

  • @nika-bm8pb
    @nika-bm8pb 6 років тому

    great explenation thank you !! and please make more videos like this. you are doing a great thing !

  • @vineetherenj3143
    @vineetherenj3143 7 років тому

    Very nice & clear explanation.

  • @asmaal7137
    @asmaal7137 7 років тому

    Thanks! so useful! waiting for more videos about OS

  • @dawid_dahl
    @dawid_dahl 3 роки тому

    Excellent teaching. Thank you!

  • @thusatharan
    @thusatharan 5 років тому

    Thank you so much. You saved my day..

  • @ayubwassie5732
    @ayubwassie5732 5 років тому

    Thank You Sir, .... What an Explanation

  • @noudie7305
    @noudie7305 6 років тому +1

    Thankyou so much you made it easier to understand 🙏

  • @bindhubelgula5745
    @bindhubelgula5745 3 роки тому

    Sir your explanation was crystal clear🙏..
    Can you please make a video by explaining the exec, execv system calls in Linux.
    Please sir.

  • @varshathaya2515
    @varshathaya2515 Рік тому

    Great job 👏

  • @SaipraveenSeva
    @SaipraveenSeva 8 років тому

    You will be blessed sir. really thank you

  • @hemantthakur661
    @hemantthakur661 5 років тому +2

    How we can use wait() or sleep () in this code to check different cases of termination of parent or child.

  • @pavankalyandandavathkar9568
    @pavankalyandandavathkar9568 2 роки тому

    thank you , very good explanation

  • @khuramzahid
    @khuramzahid 7 років тому

    Awesome explanation.

  • @marvellouschandan
    @marvellouschandan 4 роки тому

    Excellent stuff sir :D

  • @exclusivevideos8310
    @exclusivevideos8310 7 років тому

    It is very helpful. Thank you...

  • @Ana95149
    @Ana95149 7 років тому

    Great explanation!

  • @decentralmultiverse6719
    @decentralmultiverse6719 7 років тому

    Forking great explanation!!

  • @issambenhassine7321
    @issambenhassine7321 3 роки тому

    thn you so mutch you save my exam
    XD

  • @abhishekshah5431
    @abhishekshah5431 3 роки тому

    Hello, I have a question; for child process c1, how is p assigned value zero if the execution actually started from next instruction(i.e
    if (p > 0); ) itself?

  • @nelsonmei9527
    @nelsonmei9527 6 років тому +1

    just wanna say thank you!

  • @lokesh1058
    @lokesh1058 6 років тому

    U r awesome pls make a complete video on Linux and it's various commands

  • @tukkinum
    @tukkinum 3 роки тому

    You're amazing thank you

  • @Just4Fun1276
    @Just4Fun1276 7 років тому

    thank you so much, it was very helpful !!

  • @saigee6313
    @saigee6313 7 років тому

    Thank you for sharing knowledge

  • @pruthvisai1289
    @pruthvisai1289 7 років тому +3

    thanks a lot it was very useful

  • @Zhaymoor
    @Zhaymoor 7 років тому

    thank you sooo much you really helped me

  • @alielmessaoudi4863
    @alielmessaoudi4863 2 роки тому

    You are the best

  • @kazimahmud4207
    @kazimahmud4207 5 років тому

    nicely explained!

  • @yogeshpandey424
    @yogeshpandey424 7 років тому

    @Techtud , For Order of execution of the processes. The parent process wait for termination of the child process.
    So irrespective of the Scheduling of the processes , shouldn't child process be executed earlier than the parent process ?

    • @mr.dontknow8938
      @mr.dontknow8938 7 років тому

      it depend on type of threading whether it is synchronous or asynchronous

  • @metube1515
    @metube1515 7 років тому

    You need more views!

  • @HinaFirdaus
    @HinaFirdaus 5 років тому

    You saved me sir

  • @asmasheraz3158
    @asmasheraz3158 6 років тому

    I wished you make video about getpid and getppid also

  • @EmilyHueg
    @EmilyHueg 7 років тому

    If er print the value of P in the end of each proccess, what will be printet for C2? C1 will print "p=0" and P1 will print "p=307" but what about C2

    • @challayashwanth4598
      @challayashwanth4598 7 років тому

      it will be same as c1, becoz child returns 0 and parent returns the child pid . so, its 0.

    • @anandverma2714
      @anandverma2714 6 років тому

      nice question i think c2 is not allowed to use 'p' or it will print a garbage value

  • @MuhammedFatihKocaplus
    @MuhammedFatihKocaplus 6 років тому

    thank you, it is very clear

  • @massinissaferradji3442
    @massinissaferradji3442 6 років тому

    very good teacher

  • @mrnobodyy96
    @mrnobodyy96 7 років тому

    Great video thanks

  • @naiilas1093
    @naiilas1093 6 років тому

    great work

  • @chaitanyadanduprolu4701
    @chaitanyadanduprolu4701 6 років тому

    Thanks .. good video...

  • @imaddinamsif
    @imaddinamsif 7 років тому

    it was very useful. thx

  • @namangautam8534
    @namangautam8534 7 років тому

    guruji you rock hip hip hutraaayyyyyy:0

  • @marioestuardogomezorellana3971
    @marioestuardogomezorellana3971 4 роки тому

    Amaziiiiing!!!!

  • @thewinnerog4667
    @thewinnerog4667 5 років тому

    do you have tutorials on threads??

  • @Lucky-jm5if
    @Lucky-jm5if 7 років тому

    Why that parent process Print twice when u used if condition?

  • @kelvinfilyk3413
    @kelvinfilyk3413 6 років тому

    excellent video

  • @piyushtiwari7954
    @piyushtiwari7954 7 років тому

    Sir there was a doubt in my mind, I thought that the first statement( P=fork(); ) in the right hand side child would return 0 and it would never enter in the "if" , so directly last print statement would be executed, I would be thankful to you if you could explain where am I wrong.

    • @gauravkumain2080
      @gauravkumain2080 7 років тому

      yes same doubt on my mind...

    • @sgtJA
      @sgtJA 7 років тому +3

      The 'if' condition of the right-hand side child is never checked because that code has already been executed in the parent (and the other child process, which was 'false'). In this specific example, the first fork (p = fork()) is responsible for creating the left child (C1). Then, execution continues at the next instruction in the parent and in C1 (the 'if' condition check). Then, only the parent enters the body of the 'if' to execute the second fork() call (which creates the right-hand child C2). So, when C2 goes to execute the next instruction (directly after the fork() that created it) it is already inside the 'if' body. Hope that helps.

  • @Jyotiprakashsahoo-CivilServant
    @Jyotiprakashsahoo-CivilServant 6 років тому

    nice... keep it up

  • @nandkishorenangre3541
    @nandkishorenangre3541 5 років тому

    I just love UA-cam :)

  • @pramodnagar9645
    @pramodnagar9645 6 років тому

    hello sir i need to clear that execution of fork depends on processor or scheduling algorithm,if you have enough time Will you help me out from this problem ?it will beneficial for me

  • @nestorhenriquez1321
    @nestorhenriquez1321 6 років тому

    create more videos bro! thank you so much

  • @exclusivevideos8310
    @exclusivevideos8310 7 років тому

    Please Explain the PRODUCER CONSUMER PROBLEM.
    Thank you.

  • @9999446380
    @9999446380 6 років тому

    Please tell where we can best utilize fork in linux?

  • @rohitdarekar2081
    @rohitdarekar2081 2 роки тому

    Hllo sir,
    Please we want tree structure as an output in our c program of child and parent process which getting create by the fork().

  • @samyukthaponnamanda7145
    @samyukthaponnamanda7145 8 років тому +1

    will the fork call instructions in child which has already been executed by parent's parent return 0?

    • @oleksandrzhelnytskyi968
      @oleksandrzhelnytskyi968 7 років тому +2

      Intresting question! I've just checked and yes it returns 0.

    • @zeeshanhshaheen
      @zeeshanhshaheen 6 років тому

      how can you explain that?? and how 347 comes from?

    • @ashutoshrattan7940
      @ashutoshrattan7940 6 років тому

      It was an arbitrary value, was taken just to explain the return of process of IDs

  • @prateekkate5855
    @prateekkate5855 7 років тому

    Thank you, Sir..

  • @techtubettd1337
    @techtubettd1337 7 років тому

    Are you from IIT KGP sir?

  • @priyadarshinidas1055
    @priyadarshinidas1055 7 років тому

    Thank you sir.

  • @avijitbhowmik8545
    @avijitbhowmik8545 8 років тому

    THANK YOU SIR.

  • @saurabhbadal2557
    @saurabhbadal2557 6 років тому

    sir please add some more question on fork() system call

  • @prasadwants
    @prasadwants 6 років тому

    Awesome..

  • @kaiser_michelle
    @kaiser_michelle 7 років тому +2

    Thanks!

  • @jarvis7136
    @jarvis7136 6 років тому

    You are emphasising on marker pens more then code on board.

  • @vijetagoel5491
    @vijetagoel5491 8 років тому

    how to use 4 fork calls for creating 11 processes without using loop

  • @shaliniverma4400
    @shaliniverma4400 7 років тому

    thanks a lot.........

  • @berkay5087
    @berkay5087 4 роки тому

    you know the process shiduling shidule shidul

  • @ishaqkhan4508
    @ishaqkhan4508 6 років тому

    thanks alot sir

  • @sonamgoyal4723
    @sonamgoyal4723 7 років тому

    Thanks sir...

  • @lipsbreeze
    @lipsbreeze 7 років тому

    thanks so much!

  • @majuran
    @majuran 6 років тому

    very nice thx

  • @LittleThuga
    @LittleThuga 5 років тому

    Be my teacher, please!

  • @Ahmadali-vd3ee
    @Ahmadali-vd3ee 4 роки тому

    thank you

  • @prajitbanerjee8226
    @prajitbanerjee8226 4 роки тому

    I LOVE YOU SIR