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

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

КОМЕНТАРІ • 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 роки тому +747

    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 років тому +924

    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 4 роки тому +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 UA-cam 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

  • @ravalaryan
    @ravalaryan Рік тому +5

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

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

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

  • @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..

  • @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..

  • @techultimateprinson2411
    @techultimateprinson2411 3 роки тому +9

    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 😊😊😊😄

  • @keertisingh3754
    @keertisingh3754 Рік тому +6

    This man is saving million lives!!🥺

  • @usmanwarraich1000
    @usmanwarraich1000 6 років тому +15

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

  • @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. 😇😇

  • @bithipaul6810
    @bithipaul6810 5 років тому +14

    One of the greatest videos seen by me in UA-cam...great,awesome effort sir...

  • @farrukhahmed9239
    @farrukhahmed9239 6 років тому +16

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

  • @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

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

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

  • @dynamictechnology4912
    @dynamictechnology4912 5 років тому +22

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

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

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

  • @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!

  • @gauravpoosarla
    @gauravpoosarla 3 роки тому +2

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

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

    Sir best explanation of round robin scheduling on UA-cam . Really appreciate all your help .

  • @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.

  • @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 2 місяці тому +1

      All the dislikes came from the university professors

  • @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 👏👍

  • @manishgupta2621
    @manishgupta2621 5 років тому +20

    Perfect and easy to understand! Thank you so much!

  • @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💖

  • @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 ...

  • @karthiknayak5632
    @karthiknayak5632 4 роки тому +1

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

  • @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👀

  • @pappujha9357
    @pappujha9357 3 роки тому +2

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

  • @jhennysalazar9052
    @jhennysalazar9052 5 років тому +389

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

  • @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.

  • @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.

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

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

  • @rohith6465
    @rohith6465 10 місяців тому +427

    Me listening this a day before exams🌝

  • @ishachugh4266
    @ishachugh4266 3 роки тому +2

    Woww sir..thank you🙏
    Stay blessed👍

  • @krishnamaurya870
    @krishnamaurya870 5 років тому +4

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

  • @studymania734
    @studymania734 10 місяців тому +2

    Thank you for making this video

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

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

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

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

  • @raiusama3998
    @raiusama3998 3 роки тому +4

    Congratulations Sir on 500K subscribers. Many mores to come

  • @rahultechtube05
    @rahultechtube05 2 роки тому +1

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

  • @Brjxmxreel
    @Brjxmxreel 3 роки тому +4

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

  • @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

  • @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.

  • @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.💙

  • @eagleshadow7967
    @eagleshadow7967 2 роки тому +9

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

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

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

  • @dv20122
    @dv20122 5 років тому +4

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

  • @Parth-z1k
    @Parth-z1k 2 роки тому +1

    Best teacher on youtube for operating system

  • @ishthetics
    @ishthetics Рік тому +14

    Kalyug ke Guru Dronacharya ❤

  • @jesus_life
    @jesus_life 2 роки тому +1

    You would praised by all, by your hardwork👏

  • @anshpatel8083
    @anshpatel8083 3 роки тому +5

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

  • @iqra4933
    @iqra4933 2 роки тому +2

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

  • @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

  • @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. ..

  • @prathyushavallabhadasu298
    @prathyushavallabhadasu298 4 роки тому +4

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

  • @29_sauravpadghan45
    @29_sauravpadghan45 4 роки тому

    One of the easiest explanation🔥🔥🔥 i ever seen. You are great sir👍👍👍👍👍

  • @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.

  • @shaanze1173
    @shaanze1173 3 роки тому +2

    FINALLLYYYY THIS IS SOOOO BEUTIFULLY EXPLAINEDDDDDD THANKYOUUUUUUU

  • @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

  • @mokshmehan7695
    @mokshmehan7695 10 місяців тому +2

    Thankyou so much sir for this awesome lecture

  • @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..

  • @Paradise526
    @Paradise526 7 місяців тому +1

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

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

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

  • @SahinShine786
    @SahinShine786 2 роки тому +1

    Best channel ♥️😊

  • @animeshsharma5153
    @animeshsharma5153 Рік тому +3

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

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

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

  • @anumoynandy5811
    @anumoynandy5811 2 роки тому +63

    I have my interview tomorrow , wish me luck🙂

  • @malvikark124
    @malvikark124 4 роки тому +1

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

  • @jyotiprakashkuanar2028
    @jyotiprakashkuanar2028 22 дні тому +8

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

  • @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.

  • @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."

  • @hardishah3442
    @hardishah3442 3 роки тому +5

    Thanks for saving my examm

  • @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

  • @rohankhanapure9611
    @rohankhanapure9611 Рік тому +2

    best teacher ever
    hats off

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

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

  • @MAkhannovel_writes
    @MAkhannovel_writes 8 місяців тому +1

    Thanku so much teacher for such a easy and clear explanation
    Blessings ftom Pakistan ❤

  • @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..

  • @tejibentoliya3181
    @tejibentoliya3181 Рік тому +1

    Sir muje video pasand aya exam hey muje end time me ek baar video dekha or muje turant yaad rah gaya mind me meri exam hey aj Unix ka papar hey so thank you so much sir for this amezing video 😊❤

  • @nitinmukesh7270
    @nitinmukesh7270 6 років тому +4

    You are awesome sir

  • @Mangesh_65
    @Mangesh_65 Рік тому +2

    Mind blowing explanation ❤🎉

  • @pabloemilioescobargaviria297
    @pabloemilioescobargaviria297 7 місяців тому +104

    Anyone from 2024 ?😂

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

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

  • @_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.

  • @sagorsaha746
    @sagorsaha746 2 роки тому +1

    You are doing a Nobel work. Your explanation is too good..... Take love...❤❤❤❤

  • @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.

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

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

  • @RiyaDobariya-d6l
    @RiyaDobariya-d6l 3 місяці тому +3

    3:55 aha se dekho ( exam vale )😅

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

    thank you so much dear i got understand for this algorithm for the first time after a very much hardwork on it and you make it so easy to understand that i really wish you GOOD LUCK awesome mindblowing thank you so much

  • @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.

  • @ravisss7535
    @ravisss7535 4 роки тому +1

    you are my favorite teacher ever and forever.🙂🙂

  • @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?

  • @SohailAkbar-ne6fe
    @SohailAkbar-ne6fe 4 роки тому +1

    Alot of love from pak sir u r so Genous teachr today is my OS paper and i will solve paper easily and All credit goes to you.... Allah aap ko or tarkki dai or kamyaaab karee😍❤❤❤❤❤

  • @VipinKumar-pk1zs
    @VipinKumar-pk1zs 4 місяці тому +9

    2 bje se ppr h bhai m abhi pdhra hu 😂