L-1.8: Fork System call with Example | Fork() system call questions

แชร์
ฝัง
  • เผยแพร่เมื่อ 24 ธ.ค. 2024

ความคิดเห็น • 996

  • @Heythereee998
    @Heythereee998 4 ปีที่แล้ว +735

    Our education system needs more teachers like him!

  • @samiralam244
    @samiralam244 3 ปีที่แล้ว +115

    So we are going in the university just to mark attendance and pay the fee and getting education for free here. Thank you so much. lots of love from #NEPAL

  • @divyaanshuagrawal3383
    @divyaanshuagrawal3383 ปีที่แล้ว +122

    Make Fork Tree and count the total number of nodes at last level! OR for 4 times a, it will be 2^4=16 times (15 Child Processes, 1 Parent Process).

  • @yashyadav6190
    @yashyadav6190 2 ปีที่แล้ว +18

    1) B
    As n=a and a=4. so 2^4=16
    2) A
    if condition is satisfied and fork is one time. n=1. Therefore 2

  • @amitjamra1583
    @amitjamra1583 4 ปีที่แล้ว +111

    ONE OF THE BEST TEACHER OUT THERE ❤️ ,VERY HONESTLY SPEAKING ,I DON'T USUALLY COMMENT ON A TH-cam VIDEO BUT SIR YOU TEACHES WITH SUCH EASE❤️❤️❤️❤️❤️❤️

    • @Shubham-ui5yy
      @Shubham-ui5yy 3 ปีที่แล้ว +1

      English sudhaar amit you teaches nhi likhte gdhe

    • @prernaprerna4028
      @prernaprerna4028 2 ปีที่แล้ว

      @@Shubham-ui5yy chill bro😂🙌

  • @GamerGabbar
    @GamerGabbar 5 ปีที่แล้ว +44

    You're an savior honestly. I don't live in India and my hindi isn't the best but you still manage to do an amazing job. Thanks for making videos like this.

  • @rishabhyadav187
    @rishabhyadav187 2 ปีที่แล้ว +46

    9:53
    child processes - 15
    It will print 16 times

    • @khushal3418
      @khushal3418 ปีที่แล้ว

      can you explain pls

    • @binayakbishnu
      @binayakbishnu ปีที่แล้ว +2

      @@khushal3418 with the formula....
      2^4 -1 children and 1 parent
      4 because loop runs 4 times

    • @lakshsinghania
      @lakshsinghania ปีที่แล้ว

      correct

    • @yujibestboi
      @yujibestboi 10 หลายเดือนก่อน +2

      hyy what is the ans for the 2nd question, i see no one has commented it?

    • @calisthenics5247
      @calisthenics5247 9 หลายเดือนก่อน +2

      ​@@yujibestboiit should be 2

  • @yogesh-thetechnicalguy5478
    @yogesh-thetechnicalguy5478 4 ปีที่แล้ว +3

    Best Explanations of fork() system call and numerical explanation.

  • @itssaim1745
    @itssaim1745 3 ปีที่แล้ว +5

    For parent (ye to hoga hi) This line of yours reminds me the whole method of fork(). Thank you sir g.

  • @letswalk4168
    @letswalk4168 5 ปีที่แล้ว +25

    sir today i saw your lecture about fork and then after i solved a question of fork which is asked in 2019 .it was so simple that it took only few seconds .before that i was unable to solve this question.thank you sir for your amazing explanation.

    • @manishbadgotra
      @manishbadgotra 11 หลายเดือนก่อน

      What is the answer of 2nd question. Can you help me?

    • @67_rohitraj54
      @67_rohitraj54 11 หลายเดือนก่อน +1

      4@@manishbadgotra

    • @manishbadgotra
      @manishbadgotra 11 หลายเดือนก่อน

      @@67_rohitraj54 thankyou for helping

  • @indiandrums8591
    @indiandrums8591 4 ปีที่แล้ว +25

    Because of this type of teachers, I get inspiration to continue higher studies

  • @sadhanasingh8162
    @sadhanasingh8162 2 ปีที่แล้ว +6

    Really, Our Education system needs teacher like you...I Salute you Sir👏👏👏

  • @wanifirdoos1737
    @wanifirdoos1737 5 ปีที่แล้ว +14

    Sir Ur Way Of teaching is amazing ....May God bless u ....

  • @musicbytushar
    @musicbytushar ปีที่แล้ว +24

    Farishta hai ye bnda...
    He has got countless number of blessings...
    Live long sir ❤️🌹🧿

  • @ShivAdiShakti108
    @ShivAdiShakti108 5 ปีที่แล้ว +12

    Thank You.. Thank You Sir! You accepted my request on videos for Fork() system call. I am so grateful to you.

  • @salilshukla2686
    @salilshukla2686 5 ปีที่แล้ว +17

    Sir u teach every topic with great enthusiasm. 👍👍👍👏👏

  • @pranavrr7993
    @pranavrr7993 3 ปีที่แล้ว +111

    For my dear friends, who is searching answer for 2nd question, there is a detailed explanation of this question in the next video of this playlist.

  • @DevGorakhiya
    @DevGorakhiya 4 หลายเดือนก่อน

    Best education on youtube. With your education we can understand everything.

  • @ayushpandey751
    @ayushpandey751 ปีที่แล้ว +11

    🎯 Key Takeaways for quick navigation:
    00:01 📚 Introduction to Fork System Call
    02:03 🔄 Return Values of Fork System Call
    03:34 🖨️ Demonstration of Fork with One Call
    05:31 🌳 Multiple Fork Calls and Process Generation
    08:08 📊 Summary and Key Takeaways
    Made with HARPA AI

  • @sajjadjamil1765
    @sajjadjamil1765 5 ปีที่แล้ว +13

    Great teacher. Salute you from pakistan

  • @piyushsharma1360
    @piyushsharma1360 3 ปีที่แล้ว +155

    4 times loop run so 4 times fork command executed and result comes out to be 16 option(b)

    • @yash.gupta_
      @yash.gupta_ 2 ปีที่แล้ว +2

      Wrong

    • @subscribeinsteadlike2768
      @subscribeinsteadlike2768 2 ปีที่แล้ว

      @@yash.gupta_ so what's the answer man

    • @voidofficial6525
      @voidofficial6525 2 ปีที่แล้ว +2

      @@subscribeinsteadlike2768 30

    • @prathamgupta6973
      @prathamgupta6973 2 ปีที่แล้ว +3

      @@voidofficial6525 you are wrong answer is 16 bro

    • @111rhishishranjan2
      @111rhishishranjan2 2 ปีที่แล้ว +10

      @@prathamgupta6973 ANSWER IS 16 AS THE FOR LOOP WILL RUN 4 TIME FROM 1 TO 4 SO 4 TIMES AND 2^4 =16 SHOULD BE THE ANSWER.

  • @piyalikarmakar5979
    @piyalikarmakar5979 3 ปีที่แล้ว +2

    I think no one can forget the output of fork after such explanation.. Thanks a lot sir...

  • @jesnarizwanarakkal
    @jesnarizwanarakkal 5 ปีที่แล้ว +30

    Awesome.. Thank u sir. How could someone dislike such a wonderful session.. Really u r amazing

  • @munahilyaqoob8797
    @munahilyaqoob8797 2 ปีที่แล้ว +1

    It's very important lecture for me thanku so much sir bht hi acha explain Kiya apne

  • @sharmavaibhav260
    @sharmavaibhav260 4 ปีที่แล้ว +54

    it will print "hello" 4 times.
    p
    / \
    (Fork()=0) c1 p(fork()=1)
    / \
    c2 p
    / \
    c3 p
    :- c1+c2+c3+p = 4 times "hello"

    • @cq7962
      @cq7962 2 หลายเดือนก่อน

      Is this right?

    • @CellerCity
      @CellerCity 15 วันที่ผ่านมา

      YES

  • @InaidKhalid-di1wn
    @InaidKhalid-di1wn ปีที่แล้ว

    Gate smashers bhai sabse accha teacher hain class ka DBMS kuch samajh mein ata hi nhi tha aapke video dekh ne ke baad dbms ka concept pura samajh mein aya aisha padhate raho sir love you ❤❤❤ ❤

  • @dilsedhoni9229
    @dilsedhoni9229 ปีที่แล้ว +4

    In the parent process, the value of pid after calling fork() will be the process ID (PID) of the newly created child process. The pid variable will contain the PID of the child process, allowing the parent process to identify and potentially interact with the child process using this PID.

  • @theindiangirl9435
    @theindiangirl9435 3 ปีที่แล้ว

    example de kr aap ne samjhaya , uske liye bahut bahut Thank you sir. Ab nahi bhulungi

  • @Meander_Man
    @Meander_Man 4 ปีที่แล้ว +43

    a goes from 1 to 4, so Total 4 times fork is called so "1" is printed 2^(4) = 16 times. There will be 15 child process and 1 parent process

  • @asifaziz9308
    @asifaziz9308 2 ปีที่แล้ว +1

    sir gajab padhate hai ....
    every topic crystal clear 😍

  • @jawadaslam8537
    @jawadaslam8537 2 ปีที่แล้ว +6

    well explained Sir... We need teachers like you in out university that we are lacking now

  • @haridevsingh3392
    @haridevsingh3392 ปีที่แล้ว

    mein to sir ke teaching ka fan bante ja raha hun ....love from bottom of my heart

  • @nikitanath1001
    @nikitanath1001 5 ปีที่แล้ว +24

    Answer (B) 16..
    Tnx for clear explanation sir..thank u so much...😊😊

  • @tahirnawaz5989
    @tahirnawaz5989 2 ปีที่แล้ว +1

    AOA guys I am from Pakistan, he is one of the best and my favorite teacher,,.

  • @shawnidutta4397
    @shawnidutta4397 5 ปีที่แล้ว +16

    This video is really really great sir. You are doing great work for us. It will be a great help if you start a series on Artificial Intelligence and software engg according to UGC NET new syllabus. I think many people will be grateful to you. Thank you in advance sir.

  • @sravankumar4750
    @sravankumar4750 3 ปีที่แล้ว +2

    Very good explanation sir.

  • @virajjp
    @virajjp ปีที่แล้ว +3

    Forking amazing 🔥

  • @dextor5635
    @dextor5635 3 ปีที่แล้ว +2

    Sir I am the biggest fan of u. Sir I am a bca student.and I learn every course u provide like CN,OS,DBMS,

  • @poojanirala3071
    @poojanirala3071 5 ปีที่แล้ว +5

    Thank you sir for this part.... I was waiting for this...

  • @patwarhub
    @patwarhub 3 ปีที่แล้ว +1

    most respect from Pakistan
    Syed tehzeeb Haider

  • @sarmadnadeem_
    @sarmadnadeem_ 5 ปีที่แล้ว +3

    MashAllah

  • @munmunkumar5546
    @munmunkumar5546 5 ปีที่แล้ว

    Saandaar, jaandaar,Jabardast,jindabaad... gurudev ki jay.

  • @akhilyadati6103
    @akhilyadati6103 3 ปีที่แล้ว +44

    Answer for the question at last is 2⁴=16 option B as loop rotates 4 times .

  • @mveen
    @mveen 3 หลายเดือนก่อน

    Informative Video🙏🙏

  • @sidharthmandal9957
    @sidharthmandal9957 5 ปีที่แล้ว +9

    Thank you very much sir. Lots of respect to you.
    My concepts got clear by watching your video.
    Searched everywhere to understand but couldn't.
    Tysm.#

  • @shubhamrajput9363
    @shubhamrajput9363 3 ปีที่แล้ว

    आपका बहुत बहुत आभार प्रकट करता हूं धन्यवाद 🙏

  • @vasudhapasumarthi5959
    @vasudhapasumarthi5959 3 ปีที่แล้ว +4

    cant thank you enough... Have been struggling for this since two days. I could understand this perfectly. Thank you so much

    • @RAJ-np1iu
      @RAJ-np1iu 3 ปีที่แล้ว

      @Vasudha Pasumarthi can you tell from where are you preparing for DEC?

  • @-MohdShoaib
    @-MohdShoaib 2 ปีที่แล้ว +1

    One of the best teacher in india 🇮🇳

  • @bidishagoswami3629
    @bidishagoswami3629 5 ปีที่แล้ว +4

    Keep up the good work Sir👌thank u

  • @neharoshan2371
    @neharoshan2371 3 ปีที่แล้ว

    👏 HatsOff to you sirji ....4 years Ki Study me ye topic nahi samja but today I understand it very well...kash aap pehle milte... You are the Best teacher

  • @BhagyaRana
    @BhagyaRana 4 ปีที่แล้ว +13

    Q1 : 16 times Print 1
    Q2 : 4 Times Print Hello

    • @mrudularothe3581
      @mrudularothe3581 3 ปีที่แล้ว +1

      Can you please explain Q2's answer

    • @Arceus948
      @Arceus948 3 ปีที่แล้ว +1

      Pls explain Q2... I beg 😭😭😭😭😭😭😭😭😭😭😭😭

    • @BhagyaRana
      @BhagyaRana 3 ปีที่แล้ว

      @@Arceus948 ​ @Mrudula Rothe P -> {C1, P} -> {C2, C1, C3, P} Therfore, 1 Parent & 3 Child, So 4 Times "Hello" Will be Printed.

    • @Arceus948
      @Arceus948 3 ปีที่แล้ว +1

      @@BhagyaRana ok thnx 😀👍🏻

  • @aaryan505
    @aaryan505 3 ปีที่แล้ว +1

    My PHD teacher's didn't give a fuck to make students learn C language.
    But you sir 🔥🔥🔥🔥🔥🔥🔥🔥

  • @sairamdonthula7827
    @sairamdonthula7827 5 ปีที่แล้ว +13

    B-16 times "1" is printed

  • @content.O.graphy
    @content.O.graphy 10 หลายเดือนก่อน +1

    First answer is 30 because fork() loop m h toh 4 times loop chl rha h toh uske according jitne child process hoge uthe hi baar print hoga toh
    30 times “1” print hoga
    Or second m 2 times print hoga

  • @seemapp3951
    @seemapp3951 2 ปีที่แล้ว +3

    1. 16 correct
    2. 2 is correct
    Thank you so much sir for provide such kind of contents 😊😊

    • @ManinderSingh-xr6ir
      @ManinderSingh-xr6ir 2 ปีที่แล้ว +1

      1 is correct but i doubt the second one. some are saying 4 is the answer of 2nd question

    • @md.shakilahmed1271
      @md.shakilahmed1271 2 ปีที่แล้ว +1

      I think it will 2

  • @RajdipSharma-s5k
    @RajdipSharma-s5k ปีที่แล้ว

    Kash college ke teachers bhi aise hi padhate 😊

  • @GopalOswal
    @GopalOswal 3 ปีที่แล้ว +15

    now a days getting college degree is just a fun but getting knowledge from such teacher is fruitful 😛
    keep going sir
    students like me need more content 😅😅

  • @polestargaming4643
    @polestargaming4643 3 ปีที่แล้ว

    best engineering channel on youtube.great sir g

  • @sohamkulkarni7004
    @sohamkulkarni7004 2 ปีที่แล้ว +5

    sir obviously 16 becasuse of 2^4 here n=5 -1=4 from loop, 15= child and 1= parent

  • @Engineer78206
    @Engineer78206 4 หลายเดือนก่อน +2

    good explanation :)

  • @akankshasharma6423
    @akankshasharma6423 3 ปีที่แล้ว +8

    Wow! U have explained the concept in such an amazing manner. Thank you 😊

  • @mansiawasthi3472
    @mansiawasthi3472 4 ปีที่แล้ว +1

    Your pedagogy is superb .

    • @dark_techyy
      @dark_techyy 3 ปีที่แล้ว

      Tumne inki pedagogi kb dekhi bhn...shrm nhi ayi unki pedagogy Dekhte hue..👀🙊🙈

  • @stutikandpal480
    @stutikandpal480 4 ปีที่แล้ว +4

    ques 1: B
    ques 2: A

  • @shahinparween5560
    @shahinparween5560 4 ปีที่แล้ว +2

    Your teaching is awesome sir 👌👌

  • @learnwithanuj8481
    @learnwithanuj8481 2 ปีที่แล้ว +3

    16 times 1 will be printed because the formula mentioned by sir is 2^n for how much time the program is executed .
    (2-1) ^ n for how many child processes created
    Watch the video to get full easy and easy explanation
    Thank you sir

  • @nimishalone8584
    @nimishalone8584 2 ปีที่แล้ว +1

    He and Code_with_Harry are my best youtube teachers.

  • @shivansh_kr._
    @shivansh_kr._ 3 ปีที่แล้ว +3

    16 times "1" will be printed (15 child nodes and 1 main node)

  • @abhijitsahoo2580
    @abhijitsahoo2580 9 หลายเดือนก่อน +1

    5 saal ke baad bhi apki playlist neya jesa lag raha hai 🤩🤩🤩🤩

  • @simranpreetkaur114
    @simranpreetkaur114 2 ปีที่แล้ว +3

    Answer of question 1 asked in the end will be "option B" i.e. "16" (2^4 because loop will be executed 4 times)

  • @MonikaSharma-ur6wx
    @MonikaSharma-ur6wx 5 ปีที่แล้ว +2

    Your style of teaching is excellent. Superb👍

  • @comradepeter87
    @comradepeter87 3 ปีที่แล้ว +5

    16 and 4? Whatever be the answer, you're an awesome teacher! I'm a high-schooler and even I could understand this!

    • @amitshukla2268
      @amitshukla2268 3 ปีที่แล้ว

      sahi ha bhai

    • @nidhisethi3135
      @nidhisethi3135 3 ปีที่แล้ว

      pls explain ans of 2nd ques

    • @tusharsingh2729
      @tusharsingh2729 3 ปีที่แล้ว

      @Sajib Saha But if fork() methods in if block returns +ve value it means they have created a child process, then there are 3 fork() statements executed, So what will be the answer now?

    • @tusharsingh2729
      @tusharsingh2729 3 ปีที่แล้ว

      The answer would be 4, because fork() method return return both 0 and 1,one after another, then there will be 4 cases in if block 00, 01, 10, 11. In 2nd and 3rd condition fork() method creates a child process and execute printf statement one after one. And in last case when fork() methods will return 1, then the inner fork() method will create a child process and a parent process. Thus, 4 times printf statement will be executed.

    • @tusharsingh2729
      @tusharsingh2729 3 ปีที่แล้ว

      @Sajib Saha But what about fork() in if block, as condition of if block is also a fork() method, whether the condition satisfies or not, fork() in condition parentheses will be executed, I am not talking about fork() just after if block, I am talking about fork() in the condition of if block

  • @bmshort333
    @bmshort333 10 หลายเดือนก่อน

    Nice sir aap Awesome hooo❤❤❤❤❤❤❤

  • @computerworldwithnaman4560
    @computerworldwithnaman4560 4 ปีที่แล้ว +6

    fork() function is executing 4 times so total 2 to power 4= 16 process will create including main process
    all 16 process will execute printf("1")
    so 1 will print 16 times in output
    Ans (B) 16

    • @iAskShahram
      @iAskShahram 3 ปีที่แล้ว

      32. dwar diagram n will understand

  • @toqirtufail34
    @toqirtufail34 2 ปีที่แล้ว

    masha ALLAH well sir topic ap ny esy smjaya jesy mahkan hota hai

  • @IrfanHussain-d3o
    @IrfanHussain-d3o ปีที่แล้ว +7

    16 times "1" will be print in output and 4 times "hello" will be print

    • @shivaay3690
      @shivaay3690 ปีที่แล้ว

      4 time hello kyu print hoga bhai..jb output me sirf 1 ko print karwana hai too..ek baar code ko run ke dekho

    • @priyalamba5288
      @priyalamba5288 ปีที่แล้ว +1

      2 times "hello" will be printed in 2nd question bcz in case of "and" if 1st returns 0 then second case is not checked then only one fork call is made and in the result 2 times it will be printed.

  • @SAMIUNJAHANAWISHY
    @SAMIUNJAHANAWISHY หลายเดือนก่อน

    Besttt🎉🎉🎉🎉

  • @kumargautam2142
    @kumargautam2142 5 ปีที่แล้ว +4

    sir... 50k hone wala h SUBSCRIBERS. .....haha SILVER play button ke sath new chapter of UGC-NET ka start kar dena bcoz exam ki DATESHEET aa gaye h..PLZZZZZZZZZZZZZZ

  • @Ritz...00782
    @Ritz...00782 หลายเดือนก่อน

    🎯 Key points for quick navigation:
    00:01 *🛠️ Introduction to Fork System Call*
    - Explanation of the fork system call for creating a child process.
    - Use of fork in the C programming context, creating a clone of the parent process.
    - Differences between creating a new process with fork and using threads.
    02:03 *📜 Fork System Call Behavior and Return Values*
    - When a fork is invoked, it returns a value that indicates the process context (child, parent, or error).
    - Child process identified by zero, parent by a positive number.
    - Discussion on scenarios leading to failure (-1) and expected outcomes.
    03:05 *🔄 Fork Execution Sequence*
    - Description of how multiple fork calls impact process executions.
    - Forking leads to multiple parallel "Hello" print outputs.
    - Example illustrating fork mechanism with two forks resulting in multiple processes.
    06:02 *➗ Process Count with Multiple Forks*
    - Calculation of the total number of process prints and child processes.
    - Formula: 2^n total processes and 2^n - 1 child processes per n fork calls.
    - Emphasis on understanding "Hello" print count and process hierarchy.
    Made with HARPA AI

  • @amoghupadhayay2502
    @amoghupadhayay2502 3 ปีที่แล้ว +3

    Sir whatever you said was alright and you explained everything well but kindly tell us that what is practical importance of this call and when to use this . What will be the advantage of creating a child process ? In actual practise i dont think we will be required to do same thing n number of times. Thank you .

  • @geethdissa5054
    @geethdissa5054 2 ปีที่แล้ว +2

    thank you for adding english subtitles. great explanation

  • @surojitkarmakar9904
    @surojitkarmakar9904 5 ปีที่แล้ว +4

    Please make a video that how os interact with processor...

  • @hajiamaan2399
    @hajiamaan2399 4 ปีที่แล้ว

    sir your teaching method is very good

  • @ig5565
    @ig5565 5 ปีที่แล้ว +3

    sir plz NET k liye b subjct wise videos provide kr dijiye according to the schedule u provided...

  • @shriprakashsinghshriprakas3719
    @shriprakashsinghshriprakas3719 9 หลายเดือนก่อน

    Best teacher ❤️ ♥️ 💙 💖

  • @dreamscapeai7
    @dreamscapeai7 4 ปีที่แล้ว +22

    sir, the endscreens at the end are covering the mcq's

    • @aabid3375
      @aabid3375 4 ปีที่แล้ว +1

      Pause the video at 9:58 you will get slight transparent screen

    • @onlyknowledge1981
      @onlyknowledge1981 4 ปีที่แล้ว

      @@aabid3375
      Thanks

  • @prabhakarmandal3469
    @prabhakarmandal3469 3 ปีที่แล้ว

    Sir u are the world 's best teacher.

  • @taranpreetsingh7366
    @taranpreetsingh7366 3 ปีที่แล้ว +8

    sir, does it make a difference if we write
    main()
    {
    fork();
    printf("HELLO");
    fork();
    }

    • @Gurtej-hf1fj
      @Gurtej-hf1fj 9 หลายเดือนก่อน

      it will not work, and will give output of (Hello Hello)

  • @sajankhan7561
    @sajankhan7561 3 ปีที่แล้ว +1

    Thank you Sir
    Lots of love and Thnx from Pakistan❤️🇵🇰
    I recommend your channel to my Fellows

  • @AUAY121125
    @AUAY121125 3 ปีที่แล้ว +3

    answer the video question
    Q1 -option(B) 16
    Q2 -option(C) 4

    • @kunalsen4429
      @kunalsen4429 3 หลายเดือนก่อน

      please explain Question.1> how it is 16?

  • @danishaltaf1810
    @danishaltaf1810 2 ปีที่แล้ว

    Sir i have back in os
    And after learning from ur lectrs i thnk my back will get clr in sha allah

  • @amargandhi1137
    @amargandhi1137 5 ปีที่แล้ว +3

    Sir
    Your way of teaching is awesome
    I wish you to God fill your all desire
    Sir can please provide me viedoes ipc mechanism

    • @GateSmashers
      @GateSmashers  5 ปีที่แล้ว +1

      Thank you so much..lots of love and blessings

  • @nobojittanti207
    @nobojittanti207 ปีที่แล้ว

    Thank you Sir.
    I have been watching this video On the day of exam.

  • @maneeshrajan3778
    @maneeshrajan3778 5 ปีที่แล้ว +7

    Q1) option B and Q2) option C. please correct me if i am wrong

    • @RidaYounas8154
      @RidaYounas8154 4 ปีที่แล้ว

      2 ka C kesy ana..please guide me..😑

  • @aishwaryadash4166
    @aishwaryadash4166 ปีที่แล้ว +2

    Watching this 5 days before Gate 2023....Thank you Sir!! Great explanation 🙏

  • @sashankpindiproli8778
    @sashankpindiproli8778 4 ปีที่แล้ว +6

    Amazing explanation!! Maybe you could have mapped the fork to tree data structure and explained why it is 2^n.

  • @sscode3809
    @sscode3809 2 ปีที่แล้ว

    Very useful vedio sir 🙏🙏👍👍

  • @nikhilanand984
    @nikhilanand984 3 ปีที่แล้ว +3

    In the starting part of the video you mentioned that child process is created when the parent is busy or not available to execute the process but in the latter part of the video you were teaching that both the child and parent process work simultaneously, then what is the need for creating child process?

  • @sreyashimukherjee519
    @sreyashimukherjee519 3 หลายเดือนก่อน

    very good explanation

  • @ritikshrivastava9442
    @ritikshrivastava9442 3 ปีที่แล้ว +4

    16 and 2 is the answer of the last two questions
    16:- loops execute 4 times so 2^4 so ans is 16
    2:- fork returns 0 or +ve value if there is no instruction then it return parent and parent means +ve so +ve and +ve means +ve and one time fork written there so so 2^1 so ans is 2

  • @imranjalali
    @imranjalali 3 ปีที่แล้ว

    You teach things in a pragmatic way. Love from Pakistan