Operating systems Example 1.002 GATE CS 2012 (fork system call)

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

КОМЕНТАРІ • 30

  • @safaabdalah3317
    @safaabdalah3317 Місяць тому

    I love how as he is trying to say "it creates a child" a child can be heard screaming in the background

  • @AkashVermaNITian
    @AkashVermaNITian 10 років тому +2

    thank you Dude... BTW we managed to form the formula prior to your describing (only after watching your lecture)!! :P

  • @thilinajayamal6076
    @thilinajayamal6076 4 місяці тому

    very useful video. Thank you 😍

  • @Moonlighty740
    @Moonlighty740 9 років тому +4

    It would be very helpful if u could include some problems on memory management and deadlocks

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

    Thanks,really easy to follow and understand.

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

    videos are so helpful👌. Please upload solutions for further year like 2013 , 2014..........😊

  • @ashishkumarg5
    @ashishkumarg5 10 років тому

    very lucid elaboration... (thumbs up)

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

    thanks so much, that was very helpful

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

    Really helpful!!! Thanks!!!

  • @seanslik1
    @seanslik1 10 років тому

    Respect boss.. great vid

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

    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 ());
    }
    }
    }

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

      u could have omit the brackets on ur ifs, cos on those blocks u have only 1 command on

  • @skv292002
    @skv292002 10 років тому +1

    gr8 work , have you published any book regarding gate or take online classes please inform

    • @click2study
      @click2study  9 років тому

      Sandeep Verma I haven't written any book, just make educational videos and teach sometimes if people want :) thanks btw

  • @kushaljoshi5611
    @kushaljoshi5611 9 років тому

    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.

    • @HackingtryxBlogspot
      @HackingtryxBlogspot 9 років тому

      +Kushal Joshi Answer is 7 not nine please watch it again
      - via YTPak(.com)

  • @SisuGuaxfitu
    @SisuGuaxfitu 10 років тому

    hai.... How to determine the thread instead of processes?

    • @click2study
      @click2study  10 років тому

      you will have to specify the settting. The code and which call is creating thread.

  • @dosisdo
    @dosisdo 11 років тому

    thanks for this video..

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

    thank ya... sir..

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

    Thank u bro

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

    Good

  • @meryamassemlali7037
    @meryamassemlali7037 2 місяці тому

    commantaire zwin

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

    Dude wtf is happening at 1.28 XDDDDDDDDD

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

    THANK YOU