L-2.7: Round Robin(RR) CPU Scheduling Algorithm with Example

Поделиться
HTML-код
  • Опубликовано: 27 дек 2024

Комментарии • 1,6 тыс.

  • @aryansingh2105
    @aryansingh2105 3 года назад +201

    This person is so dedicated that even the lines on the board are drawn using a ruler. Thanks a lot for providing such nice content. Respect 🙏🏻

  • @barajatri
    @barajatri 3 года назад +737

    Round Robin is like PaniPuri wala giving Puri to everyone standing there one by one
    And FCFS is like ticket counter , you came first so you can buy ticket first ,
    And SJF is like grocery store kaam saman waley list ko pehle de deta hai

  • @bkbzv6019
    @bkbzv6019 6 лет назад +922

    I don't usually go for the common gate lecture tutorials but this man made it sound so clear. I wish he was my operating system teacher😁

    • @GateSmashers
      @GateSmashers  6 лет назад +145

      Thanks..Bless u

    • @sanikabarbudhe560
      @sanikabarbudhe560 4 года назад +23

      Your explantion about round robin is remarkable ....indeed u are best one thku for best explanation😊😊

    • @haniyabatool9914
      @haniyabatool9914 3 года назад +6

      Same I wish

    • @13_kajalgangele32
      @13_kajalgangele32 3 года назад +4

      @gate smashersir can we get ljf problem video please

    • @rishabhchaurasiya9536
      @rishabhchaurasiya9536 3 года назад +17

      But He is in my college, but it's our bad luck that he didn't teach in our section.

  • @tanishktripathi8773
    @tanishktripathi8773 4 года назад +21

    This video deserves a million views and your channel deserves a million subs too💯

  • @ATV-sy2ri
    @ATV-sy2ri 5 лет назад +125

    Sir, all I can say is there is no teacher I found on RUclips as good as you.

  • @pollabahmed
    @pollabahmed 6 лет назад +497

    After watching a lot of videos on Round Robin, I found that your explanation is better than others. Thank you.

    • @achyut0771
      @achyut0771 6 лет назад +5

      same thank u so much

    • @premprakash8220
      @premprakash8220 6 лет назад +5

      mere sath bhi bhai

    • @miss_sakina9236
      @miss_sakina9236 5 лет назад +2

      Same

    • @trainlikeafighter9056
      @trainlikeafighter9056 5 лет назад +4

      If time qua. Is one then ???
      In my problem...
      Process BT AT
      P1. 3 1
      P2. 2 2
      P3. 5 0
      .................................
      But time quantum is 1... The with this method... Start of runnable queue is
      P3.... P1....P3....P2.....
      ....
      And
      Real Answer runnable queue is
      P3....P1....P2...P3...P1...P2....P3...
      ...
      Please help sir??

    • @dilpreetkaursawhney6736
      @dilpreetkaursawhney6736 5 лет назад

      @@trainlikeafighter9056 yup . if we apply this method then the answer would be wrong. Did u find the right answer

  • @purplegalaxy5265
    @purplegalaxy5265 4 года назад +43

    Sir, I found you like a bright light at the end of a dark tunnel! THANK YOU SO MUCH! ALLAAH BUHUT KHUSH RAKHE AAPKO HAMESHAA! Aameen!

    • @GateSmashers
      @GateSmashers  4 года назад +10

      Thank you so much for blessing..

  • @jhennysalazar9052
    @jhennysalazar9052 5 лет назад +389

    I don't speak hindi, but this made a lot more sense than any other English video :)

  • @ravalaryan
    @ravalaryan Год назад +5

    I like your teaching skill.
    You are one of the best teacher.

  • @Nothing2.02
    @Nothing2.02 6 лет назад +17

    One of the best explanation on CS subjects....Makes it so easy to understand in short amount of time..Keep up the Good Work..

  • @piyushdevda3598
    @piyushdevda3598 3 года назад +8

    i don't know why people are disliking this video. This man is teaching in very easy and efficient manner...Hats off to u sir!!!!

    • @rarity7797
      @rarity7797 Месяц назад +1

      All the dislikes came from the university professors

  • @keertisingh3754
    @keertisingh3754 Год назад +6

    This man is saving million lives!!🥺

  • @ramanbabber3040
    @ramanbabber3040 5 лет назад +5

    You are the no 1 educator on RUclips you make this topic so easy for me you are a MAGICIAN who can make anybody's mind in running 🏃 state.

  • @usmanwarraich1000
    @usmanwarraich1000 6 лет назад +15

    I found your lectures more easy to understand than any others. You have such great elaboration skills.

  • @techultimateprinson2411
    @techultimateprinson2411 3 года назад +8

    When mine college sir taught this alogrithm i was confused very badly but when i watched this video this algorithm was very well explained and i have no doubts at all thank you varun sir for well explaining this algorithm 😊😊😊😄

  • @farrukhahmed9239
    @farrukhahmed9239 6 лет назад +16

    You made it really easy to understand difficult topics. Thanks a ton brother!

  • @gauravpoosarla
    @gauravpoosarla 3 года назад +2

    Sir aapne itne mushkil concept ko itna simple bana diya, kaash aap hamare OS ke teacher hote.

  • @bithipaul6810
    @bithipaul6810 5 лет назад +14

    One of the greatest videos seen by me in RUclips...great,awesome effort sir...

  • @youbobasumatary
    @youbobasumatary 3 года назад +1

    so muccch better explaination than a professor...u are capable to teach in a university than any other proffessor in our university hats off to u sir

  • @tanyamahajan1985
    @tanyamahajan1985 5 лет назад +4

    First teacher who really undersrands students, accept them as learners and our basic obvious doubts..Thankyou sir

  • @codeload8524
    @codeload8524 3 года назад +8

    Huge respect from Pakistan ... What an easy way of touching the grassroot level of students ... I am 6.5 years experienced SE and now em getting clear my concepts ... I wish we could have university teachers like you ...

  • @mariamazeez2374
    @mariamazeez2374 5 лет назад +21

    A huge and heartfelt thank you for teaching so well!! It's crystal clear and student-friendly! You've cleared all possible doubts before we could ask them! Thank you again! Allaah aapko khush rakhe, buhut taraqqi dey! Ameen!

  • @soumaliroy615
    @soumaliroy615 5 лет назад +6

    Thank you so much Sir, after watching many videos of RR, I found ur vdeo the best one to explain it!! Cant deny, ur way of teaching n explaining is awesome Sir in every vdeos. 😇😇

  • @dynamictechnology4912
    @dynamictechnology4912 5 лет назад +22

    Thank you, after watching this video my all doubts are clear 😊

  • @ishant162
    @ishant162 3 года назад +10

    I'm preparing for placements and your lectures are helping me a lot. Thank you for making these lectures!!

    • @nishantdiaries3697
      @nishantdiaries3697 3 года назад

      Tell me also brother how I prepared🙏

    • @ishant162
      @ishant162 3 года назад +1

      @@nishantdiaries3697 you can also refer Love Babbar's video on final year roadmap for placements

    • @nimraaziz6850
      @nimraaziz6850 2 года назад

      Ager arrival time same ho p1 &p2 ma to to phly konsa process consider karain gy???? Kindly guide

    • @visheshkaran7083
      @visheshkaran7083 2 года назад

      @@nimraaziz6850 p1

    • @anmolempire1197
      @anmolempire1197 Год назад

      Where u placed👀

  • @rashityagi6612
    @rashityagi6612 5 лет назад +5

    Sir best explanation of round robin scheduling on RUclips . Really appreciate all your help .

  • @arshiraina7021
    @arshiraina7021 4 года назад +3

    Sir you taught the main part so smoothly that it appeared to be quite easy from the beginning.I just loved your video.Thank you💖

  • @manishgupta2621
    @manishgupta2621 5 лет назад +20

    Perfect and easy to understand! Thank you so much!

  • @bhagyeahh984
    @bhagyeahh984 Год назад +2

    The way you teach anyone could possibly clear GATE without stress. 🤝🙇 Thankful that I have access to watch this kind of tutorials of your's for free.

  • @rohith6465
    @rohith6465 10 месяцев назад +426

    Me listening this a day before exams🌝

  • @karthiknayak5632
    @karthiknayak5632 4 года назад +1

    U deserve National award for teaching hats off keep doing good things and thank you.

  • @krishnamaurya870
    @krishnamaurya870 5 лет назад +4

    I love The Method and the way of Your explanation.
    Nice Sir.

  • @mahdihasanlabib2131
    @mahdihasanlabib2131 2 года назад

    The way of your explanation is too easy to understand. Thank you soo much from the core of my heart.

  • @mirmohsinali732
    @mirmohsinali732 4 года назад +7

    Such an amazing explanation! I have an online presentation tomorrow for this topic and this just helped me so much! Thank you so much Sir.

  • @mrGroot7
    @mrGroot7 Год назад

    I don't usually go for the common gate lecture tutorials but this man made it sound so clear.

  • @shaikhshugufta3741
    @shaikhshugufta3741 4 года назад +5

    Thanks a million for making me understand this concept in a beautiful way...I was having a lot of confusion in this topic but now I can do it very well in my NET exam without any confusion.
    Thanks a gazillion .Best teacher ever.

  • @neharoshan2371
    @neharoshan2371 3 года назад +2

    Amazing explanation for Round Robin Algorithm this type of explanation I dont saw even in colleges too....!!! First time I come to Know that To maintain two gantt charts 😊 superb 👏👍

  • @eagleshadow7967
    @eagleshadow7967 2 года назад +9

    Finally i have understood this concept only cause of you😊.......

  • @aastha21thc
    @aastha21thc 2 года назад +1

    Thank You is not enough. Subhe uthke sabse pehle bhawan ko aur fir aapko thankyou karti hu bas........dinn achha jata h.always always gratitude towards you bhaiya.

  • @Farahat1234
    @Farahat1234 5 лет назад +8

    Thank youu soooo muchh sir....you are very intellegent and smart😊

  • @pappujha9357
    @pappujha9357 3 года назад +2

    Your videos are the major and the only cause of my good grades. Thanks a lot! Keep doing

  • @Aduu_Cute_Pets
    @Aduu_Cute_Pets 5 лет назад +11

    Thank you Sir...
    your lectures help me a lot in both mid term and now in final terms.
    Love from Pakistan

  • @mamedfaruk7183
    @mamedfaruk7183 5 лет назад +2

    Sir,your lecture are excellent and you are champion of these subject

  • @dv20122
    @dv20122 5 лет назад +4

    Great work sir.. No one explained me this like you did thanks a lot 🙏

  • @rahultechtube05
    @rahultechtube05 2 года назад +1

    Hum jab bhi round robin scheduling bhul jate hai to ye video akar dekh lete hai very easy explanation sir 🙏🥰

  • @raiusama3998
    @raiusama3998 3 года назад +4

    Congratulations Sir on 500K subscribers. Many mores to come

  • @sourindas322
    @sourindas322 4 года назад +2

    Thank you so much sir for your lucid classes, i dont attend my online classes now, just after seeing your tutorial the concept gets Crystal Clear.No need to watch any 2nd video on the topics that you teach.💙

  • @anshpatel8083
    @anshpatel8083 3 года назад +5

    You helped me a lot for my diploma exam through this playlist! Thank you 🙏🏻

  • @rdengineeringconcept7635
    @rdengineeringconcept7635 2 года назад

    I hv no word to explain ur teaching style. I am follow same strategy for my students in my college. Boom 💥

  • @vishweshwar1876
    @vishweshwar1876 6 лет назад +5

    Sir I loved this video of yours. This was completely awesome. Thanks for helping students like us in times of need. :D

    • @GateSmashers
      @GateSmashers  6 лет назад +7

      Thank you so much for your love and support. Bless you.

  • @studymania734
    @studymania734 10 месяцев назад +2

    Thank you for making this video

  • @flyingclur2360
    @flyingclur2360 6 лет назад +6

    Mindblowing explanation, I have not seen anyone yet explaining the concepts in such very easy,understoodable&in detailed way;much much better than Ravindrababu Ravula in terms of teaching concepts!provide complete Gate CS course asap,it will be of great help for Gate aspirants!Thanks..

  • @sk-in3xv
    @sk-in3xv Месяц назад +1

    "Sir, thank you so much for such an insightful lecture today. The way you explained Round Robin Scheduling Algorithm really made it much clearer and easier to understand. Your teaching style always inspires me to learn more deeply."

  • @ishthetics
    @ishthetics Год назад +14

    Kalyug ke Guru Dronacharya ❤

  • @ishachugh4266
    @ishachugh4266 3 года назад +2

    Woww sir..thank you🙏
    Stay blessed👍

  • @think_positive11
    @think_positive11 5 лет назад +4

    U r best ... Os is my favorite subject but I think I need lot of information about this.... N ur videos are best

  • @kalyanisarikonda5488
    @kalyanisarikonda5488 Год назад +1

    15:28 At this point, who has remembered "Dora The Explorer"😅. Apart from this, this man helped a lot by making concepts easier. Thank You, Sir!

  • @Brjxmxreel
    @Brjxmxreel 3 года назад +4

    This guy is very helpful for all of us ❤️❤️❤️❤️ such a. Great human 😁😁❤️❤️🙏🙏🙏🙏🙏

  • @malvikark124
    @malvikark124 4 года назад +1

    Sir, your teaching is really good and speaking speed is perfect . Very easy to understand. Thanks sir! :D

  • @prathyushavallabhadasu298
    @prathyushavallabhadasu298 4 года назад +4

    Blessed to have u as our Professor in our University sir_ ur student ❤️

  • @classhelp_line8473
    @classhelp_line8473 4 года назад

    I am from bangladesh. But I love and respect your teaching skills soo much. I just literally watch and understand so easily! !!!!!!! Respect on you.. really. ..You are really amazing skills of teaching. ..

  • @subhammaji1921
    @subhammaji1921 2 года назад +4

    Context Switching works like Google form Autosave option.😁😁😁😁😁😁

  • @Travelling_ritik
    @Travelling_ritik Год назад +1

    thanku sir ....apne bht ache se explain kra....clg me smjh ni aaya pr apne smjhya qstn smjh aa gya

  • @animeshsharma5153
    @animeshsharma5153 Год назад +3

    dil se thank you sir college me mujhe 25 of 25 mile and all credits goes to you....❤

  • @mokshmehan7695
    @mokshmehan7695 10 месяцев назад +2

    Thankyou so much sir for this awesome lecture

  • @utsavtaliyan7395
    @utsavtaliyan7395 2 года назад +31

    Great Video Sir, but I think Context switches are actually = 3, as P3's burst time is = Time quantum = 2, and P4 also gets completed in only it's first time quantum(so it doesn't get saved after), also we don't save P2 after we execute the 2nd time because it gets completed.

    • @maliaqakhan7502
      @maliaqakhan7502 2 года назад +1

      yeah i thought the same

    • @rohanmandloi7561
      @rohanmandloi7561 Год назад +1

      I was looking for this only

    • @Rayuga-zq8ge
      @Rayuga-zq8ge Год назад +1

      👍🙂

    • @trndsttr7585
      @trndsttr7585 Год назад +1

      Exactly.

    • @ayaredattatraya327
      @ayaredattatraya327 Год назад +1

      I don't think so Utsav. If there is expiry of Time quantum, it's called preemptive context switch. If the current process terminates, it's called non - preemptive context switch. Thus, both are considered as context switch..

  • @Parth-z1k
    @Parth-z1k 2 года назад +1

    Best teacher on youtube for operating system

  • @anumoynandy5811
    @anumoynandy5811 2 года назад +62

    I have my interview tomorrow , wish me luck🙂

  • @mohammadsaadkhan5309
    @mohammadsaadkhan5309 3 года назад +2

    Man your videos are love! You made preparing for my university's operating systems final exam so easy.

  • @ritikshrivastava9442
    @ritikshrivastava9442 3 года назад +7

    16:00 agar koi process wahi par running queue me terminated ho gaye hai to usko thodi save karenge
    so wo context switch kaise hua

  • @neharoshan2371
    @neharoshan2371 3 года назад

    The best thing about You and Your class is - bate kam kaam Jada... Like other you tube channel no unnecessary shouting no unnecessary speaking.... talking only about topic saving lot of time 👏😊
    Small video with great Knowledge

  • @praneethpullela5213
    @praneethpullela5213 4 года назад +4

    I watched this yesterday, and now I aced my exam.

  • @zenshyam
    @zenshyam 4 года назад +1

    Not just one of the best explanation for this subject....indeed it is the best explanation ever i have watched on this topic.....Thanks to you sir and RUclips algorithm for recommending me your channel.......Preparing for gate 2021....Thanking you in advance

  • @pabloemilioescobargaviria297
    @pabloemilioescobargaviria297 7 месяцев назад +91

    Anyone from 2024 ?😂

  • @chayanikasarkar6293
    @chayanikasarkar6293 6 месяцев назад

    The best Teacher For OS i have ever came across and also For DSA problems. Keep Up The Good work sir. Your teaching technique is just amazing.

  • @hardishah3442
    @hardishah3442 3 года назад +5

    Thanks for saving my examm

  • @iqra4933
    @iqra4933 2 года назад +2

    U explained everything perfectly 🤓 I really like this video👍🏻👍🏻

  • @abdullahashfaq114
    @abdullahashfaq114 5 лет назад +5

    Love you Sir, I'm in love with you.
    Awesome understanding...:) :*

  • @Paradise526
    @Paradise526 6 месяцев назад +1

    Literally, no one explains the way you explain, sir.... every student can easily understand.. without any doubts ❤ great

  • @jyotiprakashkuanar2028
    @jyotiprakashkuanar2028 13 дней назад +6

    Anyone in 2025 watching this 1 day before Exam ? 😂😂😂

  • @Mangesh_65
    @Mangesh_65 Год назад +2

    Mind blowing explanation ❤🎉

  • @_haptic_shorts
    @_haptic_shorts 4 года назад +3

    Great video sir .. ❤
    But i think the number of context switching is *4* not 5. Because we didn't save _p3 state_ , coz p3's brust time is 2 so it's terminate there.

    • @utsavtaliyan7395
      @utsavtaliyan7395 2 года назад +2

      Context switches are actually 3, because P4 also gets completed in only it's first time quantum, and we don't save P2 after we execute the 2nd time because it gets completed.

  • @kcreations5478
    @kcreations5478 3 года назад

    Thank You Very Much Sir...main sjf, priority scheduling and round robin sabke sab samajh gaya

  • @nihalmuhammed4354
    @nihalmuhammed4354 3 года назад +13

    When we count the no. of context switches, do we also count where a process gets terminated and a new one comes in (like P1 after P3)?

    • @Kumkumbinjwa
      @Kumkumbinjwa 3 года назад +3

      I was searching for this question in comment section . Did u got ur answer ??

    • @monilgandhi229
      @monilgandhi229 3 года назад

      Even I have same doubt....can you plz share the answer if you have got your query solved

    • @nihalmuhammed4354
      @nihalmuhammed4354 3 года назад +6

      Yes, we do count them. It just means that CPU is switching from one process to another(whether preemption or termination)

    • @amanmotwani4727
      @amanmotwani4727 2 года назад

      i also have a same doubt....if somebody knows about it , then please clarify...btw i love the way you teach sir❤❤

    • @utsavtaliyan7395
      @utsavtaliyan7395 2 года назад

      Context switches are actually = 3, as P3's burst time is = Time quantum = 2, and P4 also gets completed in only it's first time quantum, also we don't save P2 after we execute the 2nd time because it gets completed.

  • @koshal6058
    @koshal6058 Год назад

    I missed this lecture in class and I am glad I did your explanation is way way better :D.

  • @nuzattasnim3942
    @nuzattasnim3942 3 года назад +7

    Thank you so much. I understood really really well.
    However I have this question. The p4 here, it was done at 9, and then CPU executed p2. If p4 is completed and then CPU switched to p2, is it still context switching?

  • @supriyakn1916
    @supriyakn1916 4 года назад

    Excellent teaching !! Ending the video with full clarity!!

  • @nitinmukesh7270
    @nitinmukesh7270 6 лет назад +4

    You are awesome sir

  • @rohankhanapure9611
    @rohankhanapure9611 Год назад +2

    best teacher ever
    hats off

  • @sonukr2284
    @sonukr2284 5 лет назад +38

    Sir how P3 process gets context switched, it gets terminated there.

    • @YashKumar-iw4zd
      @YashKumar-iw4zd 5 лет назад +4

      Very nice explanation Varun Sir, just please clarify the above point and also similar kind of case was with P4

    • @sarojshardha3549
      @sarojshardha3549 3 года назад

      Exactly how P3 and P4 context switched?

    • @talhaanwar6427
      @talhaanwar6427 3 года назад +1

      P3 and p4 never got context switched we brought it in the ready queue based on their arrival time, hence it is only there one time and gets completed when it enters the running queue.

  • @mughalg7806
    @mughalg7806 Год назад

    Much helpful....
    Mine first priority for any topic is Sir Varun Singla...Thank You Sir 🥰.....love from Pakistan🇵🇰🇵🇰

  • @NewbieValorantYT
    @NewbieValorantYT 2 года назад +12

    BUt after p3 shouldn't we run p4 before p1 because p4 has just arrived at time interval 4 ?? ( That is how our teacher has taught us, so please clear this sir 🙏)

    • @AK-xg5bh
      @AK-xg5bh Год назад +2

      same question i think he did it wrong

    • @animeshmathur8094
      @animeshmathur8094 Год назад +1

      Pr bhai shayad wo P1 remaining tha to usko P4 ke ready queue mai aane se pehle hi last mai laga diya tha

    • @darshanv8345
      @darshanv8345 Год назад +1

      No bro , during 2 seconds p2 and p3 is added into the queue but since p1 is not completed it is added and then as p2 starts processing p4 is added .

    • @darshanv8345
      @darshanv8345 Год назад

      @@AK-xg5bh he is right bro

    • @NewbieValorantYT
      @NewbieValorantYT Год назад

      @@darshanv8345 Yea , Thank you

  • @shashanksinha6583
    @shashanksinha6583 Год назад

    I had purchased a paid course for OS, but had to see his video for clear understanding. His efforts are clearly seen in his video as he makes every difficult concept simple to understand. I recommend watch his videos rather than going for any paid courses.

  • @VipinKumar-pk1zs
    @VipinKumar-pk1zs 4 месяца назад +9

    2 bje se ppr h bhai m abhi pdhra hu 😂

  • @nehachandlamexpdhhgbr8721
    @nehachandlamexpdhhgbr8721 4 года назад +1

    After listening your explanation all my doubts are cleared.
    Thank you so much Bhaiya for sharing this video

  • @RiyaDobariya-d6l
    @RiyaDobariya-d6l 3 месяца назад +3

    3:55 aha se dekho ( exam vale )😅

  • @javeriakashif804
    @javeriakashif804 2 года назад

    you rrr the best teacher ...thankuuu so much for explaniing such a difficult concept in easy details ..God bless uuu

  • @halfofmylife10
    @halfofmylife10 6 месяцев назад +3

    Me listing one hour before exam 😅

  • @commandergaming3781
    @commandergaming3781 4 года назад +2

    Your way of teaching is very convenient and impressive 🔥❤️

  • @kumudhraom1718
    @kumudhraom1718 8 месяцев назад +3

    Me listening this 20 mins befor the exam