No video

Round Robin Algorithm Tutorial (CPU Scheduling)

  Рет қаралды 492,840

ouchouchbaby

ouchouchbaby

Күн бұрын

A quick tutorial on Round Robin CPU Scheduling
Notes:
Avg. Waiting Time:
P1 = 0 + (9 - 3) = 6
P2 = (3 - 1) = 2
P3 = (6 - 3) + (15 - 9) = 9
P4 = (11 - 5) = 6
P5 = (12 - 6) + (18 - 15) = 9
Avg. WT = 6.4 sec
Avg. Turn Around Time:
P1 = 11 - 0 = 11
P2 = 6 - 1 = 5
P3 = 18 - 3 = 15
P4 = 12 - 5 = 7
P5 = 19 - 6 = 13
Avg. TA = 10.2 sec

Пікірлер: 206
@oscaralfonsoguerrero5154
@oscaralfonsoguerrero5154 6 жыл бұрын
Thanks for not being another Hindi tutorial. I seriously mean it.
@roko567
@roko567 6 жыл бұрын
the struggle is real
@ManuelRochaCR
@ManuelRochaCR 6 жыл бұрын
I was in the quest for some real English too!
@nibuer
@nibuer 5 жыл бұрын
seriously
@AS-jo8qh
@AS-jo8qh 5 жыл бұрын
What is that?
@shrimp3332
@shrimp3332 5 жыл бұрын
ikr i am so happy to find it in "REAL" english
@xika0s
@xika0s 8 жыл бұрын
This is far the best explanation of round robin on KZbin, simple and clear. Its worth noticing that quantum doesn't necessarily needs to be in seconds, but can be expressed in any time unit.
@amoghkulkarni3519
@amoghkulkarni3519 6 жыл бұрын
please reply me , if you get notified about my reply
@huzaifa199770
@huzaifa199770 4 жыл бұрын
if that happens do you just convert it to the same unit as the processes in the table? (second to minute etc)
@mohammad_bilal951
@mohammad_bilal951 2 жыл бұрын
quantum is a just a unit to measure time you can let it seconds,minutes,hours anything
@yassinedrissi7955
@yassinedrissi7955 2 жыл бұрын
agree a lot
@nisargpatel4443
@nisargpatel4443 3 жыл бұрын
I can't believe it. I was looking everywhere to figure out this algorithm and watching this video, it took only 4 minutes to understand it all. Nice!
@AL-go2mv
@AL-go2mv 7 жыл бұрын
Very simple yet detailed explanation. I now fully understand how I would implement this in C/C++ for my Operating Systems class. Thanks!
@marcricsonricafort8479
@marcricsonricafort8479 3 жыл бұрын
Hello do you have the codes in here? Can u send it to me. Appreciated a lot
@DocHolidayKY99
@DocHolidayKY99 5 жыл бұрын
Legendary explanation of Round Robin. Tomorrow is my exam, thank you for saving me a fair amount of points!
@wantingyap
@wantingyap 9 ай бұрын
it's been 8 years and this video still helps a lot of people like me! thanks for the simple clear cut example. Hope you are doing well! :))
@kaiohenriqueps
@kaiohenriqueps 9 жыл бұрын
My god man! What a explanation! I'm from Brazil and I was trying to found a video that would help me to understand RR, and I have watched brazilian people trying to explain but it didn't work! You have saved my life! THANKS A LOT!
@iremabay2189
@iremabay2189 7 ай бұрын
I have an exam tomorrow morning and this video just fixed all the confusion in like 3 minutes. I can’t thank you enough 🙏🏼😭
@XenogearsPS
@XenogearsPS 3 жыл бұрын
Wow I have looked at several videos and read textbooks and I never understood it. I now understand it. Wow. My mind is blown. Thank you.
@dsm6357
@dsm6357 2 жыл бұрын
And even after 6 years this video was still need it. Like I really hope you are a professor or something, I wasn't able to understand for a good while RR scheduling but thanks to you I did it on 4 minutes like how CLEAR your explanation was, it definitely will be a pleasure if someone has you as their teacher or tutor because this really was a life or more like a test savior. Hopefully you get back to do some of these. Wish you the best and once again thank you for the explanation!
@amoghkulkarni3519
@amoghkulkarni3519 6 жыл бұрын
thanks a lot ,the fact that you explained it within 5 min is the important thing here
@tometslopo1182
@tometslopo1182 Жыл бұрын
bro you explain it so simple but efective, i understund it in 10 seconds your good teacher
@zerorobespierre918
@zerorobespierre918 3 ай бұрын
Huge thanks for the example with time graph, table and definitions. It is much easier to understand something that is visualized.
@mjd5367
@mjd5367 2 жыл бұрын
Nice. I was checking many channels for good lecture and wasted 20 to 40 min. U gave the idea in 4 min⚡⚡⚡
@mikeahmed7092
@mikeahmed7092 5 жыл бұрын
Finally, Someone Who speaks English! Excellent Explanation~
@alekmdjl2
@alekmdjl2 2 жыл бұрын
Love how i learned more from this 5 min youtube video than my school who im paying thousands to attend…
@texaport101
@texaport101 8 ай бұрын
Was struggling to understand this but not anymore. Simple and precise
@renzosanantonio5952
@renzosanantonio5952 6 жыл бұрын
Thank you so much for uploading this detailed video of scheduling using round robin algorithm. Best explanation of round robin so far 🙂
@martinmatanov5581
@martinmatanov5581 8 жыл бұрын
Many thanks bro, the combination of incoming time and queue is killin it :)
@thanushreemn7300
@thanushreemn7300 3 жыл бұрын
I can surely say this explanation was way better than 19 mins video I learnt entire concept clearly !
@chilledtofubeats1446
@chilledtofubeats1446 3 ай бұрын
bro born just to help us and post this only video
@peterni1576
@peterni1576 4 жыл бұрын
Clear and simple explanation! It's absolutely easy to understand. THX U, Sir!
@devCave01
@devCave01 20 күн бұрын
Wonderful in 4 minutes I understood this... thank you so much u just gained a subscriber
@mjishnu
@mjishnu Жыл бұрын
awesome video quick and precise delivered the concept within 4 min most other videos take 20 min saved me a lot of time thanks!
@kiritokun9139
@kiritokun9139 7 жыл бұрын
Thank you so much for the vid!! I am going to write a test tomorrow and that Algorithm wasn't explained well in my script. With your explanation I understood how it works. Thumbs up!
@MayCodeGuide
@MayCodeGuide Ай бұрын
best video on the subject for sure, better then my collage professor
@AhmedKhan-rt6oz
@AhmedKhan-rt6oz 4 жыл бұрын
You nailed it broo! I try out many tutorials but not worth than you.Your teaching style is same as my university Mam!
@possiblyzslot838
@possiblyzslot838 7 ай бұрын
BEST explanation on YT, thank you!
@jerryonthehole2882
@jerryonthehole2882 Жыл бұрын
The best explanation for round Robin in youtube.. Thank you very much
@bigsamsa1508
@bigsamsa1508 3 ай бұрын
You just saved my semester
@timgorman807
@timgorman807 2 жыл бұрын
Awesome fantastic video really helps, my midterm is next week and this was the one I was struggling to learn.
@user-zx7mc9bx7c
@user-zx7mc9bx7c Жыл бұрын
By far the best explanation video on youtube!!!!!!
@itsdhyya88
@itsdhyya88 2 жыл бұрын
This is the best explanation of round robin ever better then my teacher at uni lol
@tajrianbintajahid7561
@tajrianbintajahid7561 2 күн бұрын
Thank you for clear explanation!
@marcor45
@marcor45 3 жыл бұрын
Tks for the quick explanation! You got to the point and super clear!
@dickyrendrahadi6207
@dickyrendrahadi6207 8 жыл бұрын
correction : the avg waiting time for p3 should be (6-3) + (15-9) = 3 + 6 = 9
@annchoi6391
@annchoi6391 5 жыл бұрын
u saved me, u explained in the most simplest way thanks!
@zhenluo3563
@zhenluo3563 9 жыл бұрын
P3 = (6 - 3) + (15 - 9) = 6 should be 9, wrong calculation
@savvasyiannopoulos7340
@savvasyiannopoulos7340 9 жыл бұрын
Great video and very good explanation! I have only one question. Why did you change from P3 again to P1 and not to P4?
@przemysawrychlik3976
@przemysawrychlik3976 9 жыл бұрын
+Savvas Yiannopoulos because P4 has arrival time 5
@eyotajr
@eyotajr 8 жыл бұрын
+Przemysław Rychlik can you give more explanation pls
@durin127
@durin127 8 жыл бұрын
+ricky orlando P1 was put after P3, because it had not finished working by that time. P1 needed additional 2 seconds to complete, so it was put back to queue after P2 and P3 were added to the queue(they were already waiting for their turn as P1 was executing). Also, P4 was not added after P3 simply, because it's time hadn't come then yet(it arrived 2 seconds later, after P1 halted).
@rabihutomo1598
@rabihutomo1598 2 жыл бұрын
thanks for the question btw :D
@McGaming412
@McGaming412 Жыл бұрын
So simple and clear explanation. Thanks a ton
@jassu..5685
@jassu..5685 3 жыл бұрын
Very..Clear n Perfect explanation..!If u could explain remaining Scheduling algorithms also it will be very helpful for us..Thank you..!Attractive attempt Sir..!
@NONAME-dj2gm
@NONAME-dj2gm 4 жыл бұрын
Thank you for having this video. I understood it easily. Thumbs up!
@sihamelghazi5356
@sihamelghazi5356 3 жыл бұрын
Thank u so much for this helpful tutoriel , I finally understand it.
@phucnguyenhoang234
@phucnguyenhoang234 5 ай бұрын
what a perfect video for explaination
@electricwatches1
@electricwatches1 4 жыл бұрын
Holy crap I got something in 4 mins that my professor couldn't explain in 3 hours!
@yeboyjayyjv9109
@yeboyjayyjv9109 4 жыл бұрын
🤣🤣🤣🤣🤣
@douglasemsantos
@douglasemsantos 5 жыл бұрын
Excellent explanation! Right to the point!
@yechielbabani1726
@yechielbabani1726 3 жыл бұрын
Why p1 gets to be twice before p4 and p5 didn't even get one
@durin127
@durin127 8 жыл бұрын
Thank you very much! Nice and simple explanation
@davidlightman4929
@davidlightman4929 6 жыл бұрын
thanks, my teacher was able to make this confusing... clear and simple
@maumi18
@maumi18 5 жыл бұрын
why we put te 2 seconds of P1 again after P3 and not after P5?
@PedroSWWE
@PedroSWWE 4 жыл бұрын
Because the P1 is the first one in the READY QUEUE. At time 3, P1 enters the READY QUEUE, P2 and P3 are already there, but P4 and P5 only enter that queue after because of their Arrival Time (AT)
@AhmedKhan-rt6oz
@AhmedKhan-rt6oz 4 жыл бұрын
you are awesome , this tutorial will help me in my exam.
@christopherespino7362
@christopherespino7362 6 жыл бұрын
Very clear and straight forward. Thank you!!!!!
@oscarsin8391
@oscarsin8391 Жыл бұрын
BEST OF THE BEST
@user-hy1lm2rd9q
@user-hy1lm2rd9q 3 ай бұрын
Very clear! thank you!
@42.nguyenminhthe87
@42.nguyenminhthe87 8 ай бұрын
i have a question for you. At the time of 3, P1 has already been completed and P3 also appears simultaneously, I think for this case, it will prioritize the process that is completed first. It translates into that P3 will be put after P1.
@back81192
@back81192 4 жыл бұрын
Man! YOU ARE MY SAVIOR!!!
@MK-uy6ks
@MK-uy6ks 8 жыл бұрын
very good explanation. real MVP
@junaidalthaf
@junaidalthaf 3 жыл бұрын
Found this useful, good job!
@katienefoasoro1132
@katienefoasoro1132 3 жыл бұрын
i did not get the order, why after p3 you come back to P1? based in wich oder it works? by the way good accent and clear video. thanks
@XenogearsPS
@XenogearsPS 3 жыл бұрын
look at arrival time. 1,2,3,5,6. after the third arrival time you go back to 1 because round robin is circular. So after 3 you can go back to 1 (1,2,3, (space to go back) 5, 6) He didn't explain it that well though.
@dinukakulathunga5798
@dinukakulathunga5798 6 жыл бұрын
Finally found a good explanation!!!...Thank you..
@expansivegymnast1020
@expansivegymnast1020 Жыл бұрын
Great video!
@brettnieman3453
@brettnieman3453 6 жыл бұрын
Great video and explanation! Thanks!
@user-gy5in5st8y
@user-gy5in5st8y Ай бұрын
CAN'T BELIEVE I WAS HELPED BY A 9 YEARS OLD VIDEO
@ranad2037
@ranad2037 2 жыл бұрын
That was very helpful, thanks a lot!
@joaopaulosilva1359
@joaopaulosilva1359 7 жыл бұрын
Good video! What program / software did you use to draw the table and the scheduling at 1:27 min of the video? I have difficulty drawing: / I await reply!
@alexjay9987
@alexjay9987 5 жыл бұрын
Try draw.io
@yassineaguedid1929
@yassineaguedid1929 6 жыл бұрын
God bless youu my friend
@soumyatarafder7656
@soumyatarafder7656 2 жыл бұрын
Great Explanation!
@yiqinglan9009
@yiqinglan9009 2 жыл бұрын
Thank you. It's very clear.
@tionasilue1434
@tionasilue1434 8 жыл бұрын
Good job, very clear explanation thanks a lot!!!
@nagasesanagasesa7026
@nagasesanagasesa7026 3 жыл бұрын
teach by example, super effective!
@devacc5101
@devacc5101 8 жыл бұрын
Nice and clear. Cheers!
@camilabalsemao1184
@camilabalsemao1184 Жыл бұрын
Great explanation!
@vasairobert3119
@vasairobert3119 4 жыл бұрын
I dont understand why was P1 put in queue after P1,P2,P3...i mean shouldn't it be queued at the end? after P4 and P5?
@rezak04
@rezak04 6 жыл бұрын
what will happen to P4 if its BurstTime be longer than 1 seconds? Will it go to queue or TQ will start from there? 3:15
@jean-paulboga8189
@jean-paulboga8189 2 жыл бұрын
beautifull explanation thanks so much.
@erikasong3054
@erikasong3054 4 жыл бұрын
thanks sir!!!!!!!!!!!!! this is what I need.
@christopheRocco77
@christopheRocco77 6 жыл бұрын
Well said! Very clear.
@Carlos-td6bz
@Carlos-td6bz 4 жыл бұрын
Thank you so much, it helped me a lot !!!!!!
@bundhoonadeem
@bundhoonadeem 7 жыл бұрын
Taa fLmm...P3 viin 9!!! Thank You!!
@kievroyle2346
@kievroyle2346 11 ай бұрын
So much thanks dude
@andikawiratana5813
@andikawiratana5813 2 жыл бұрын
clean explanation, thanks
@gomez007
@gomez007 7 жыл бұрын
why we put p1 after p3 only?
@boooost98
@boooost98 6 жыл бұрын
Because P4 and P5 haven't arrived at that time yet
@raselrahman5641
@raselrahman5641 6 жыл бұрын
i think you are right... i have done this scheduling
@burhanusuf9856
@burhanusuf9856 6 жыл бұрын
@@boooost98 plz explain
@PerfectRa1n
@PerfectRa1n 5 жыл бұрын
If the process terminates or changes its state to waiting during its attributed time quantum, the scheduler selects the first process in the ready queue to execute.
@Charles-ve2yy
@Charles-ve2yy 6 жыл бұрын
Thank you, great explanation!
@noureddinebentaher406
@noureddinebentaher406 2 жыл бұрын
im so happy thank u
@jasper5016
@jasper5016 2 жыл бұрын
Thanks. It was amazing.
@Weranga-Rathnayaka
@Weranga-Rathnayaka 2 жыл бұрын
Is this premtive or non premtive?
@burhanusuf9856
@burhanusuf9856 6 жыл бұрын
Can someone tell me y p1 came before p4???
@BradA-t1y
@BradA-t1y 8 жыл бұрын
If P4 had a BT of 5, after P1 had finished, would P4 run for 1 or 3 seconds?
@adrianevillanueva69
@adrianevillanueva69 8 жыл бұрын
+Brad A. it will run for 3 seconds (TQ) and the remaining BT of 2 will be exected another time. P4 will go back in que after P3
@MessyAsianGamer
@MessyAsianGamer 6 жыл бұрын
Hi im confused why is p4 come after p1..because p4 hasn't started yet where p1 have? sorry for my bad english.
@augustkravtsov
@augustkravtsov 6 жыл бұрын
P1 gets rescheduled after 3s, P4 starts after 5s.
@pradeepasivanesan3768
@pradeepasivanesan3768 5 жыл бұрын
Esay explanation... Thank you so much
@arifdale
@arifdale 5 жыл бұрын
Thanks for making this video
@christianmassuh5985
@christianmassuh5985 3 жыл бұрын
Awesome! Thank you for the clear explanation! #hero
@ga9526
@ga9526 4 жыл бұрын
what if the arrival time of the first process is not zero?
@diraneserges6076
@diraneserges6076 3 жыл бұрын
Thank for Video, but I have a question please. I would like to know if it is possible to Calculate Round robin Without time quantum. If yes? How i do ? Sorry, I cannot good talk English
@samuelmaucaille702
@samuelmaucaille702 5 жыл бұрын
what happens if time quantum is greater than burst time?
@mekelilyasa9561
@mekelilyasa9561 3 жыл бұрын
Thanks a lot dude
@TheSuperkiller14
@TheSuperkiller14 4 жыл бұрын
And my doctor spent his two hours lecture explaining this...
@yeboyjayyjv9109
@yeboyjayyjv9109 4 жыл бұрын
Welp.. thats my Dad😀
@user-th6qb8pv3f
@user-th6qb8pv3f Жыл бұрын
What if the tq is not given ?
@marclloydrunas2946
@marclloydrunas2946 4 жыл бұрын
Can you guys help me out? How will you know when you are to go back to a process with a remaining burst time?
@showken614
@showken614 8 жыл бұрын
great video thanks!
Round Robin(RR) CPU Scheduling Algorithm in OS with example
19:47
Jenny's Lectures CS IT
Рет қаралды 970 М.
Round Robin CPU Scheduling Algorithm (RR) - Operating Systems
6:41
Simple Snippets
Рет қаралды 92 М.
Oh No! My Doll Fell In The Dirt🤧💩
00:17
ToolTastic
Рет қаралды 11 МЛН
这三姐弟太会藏了!#小丑#天使#路飞#家庭#搞笑
00:24
家庭搞笑日记
Рет қаралды 97 МЛН
Magic trick 🪄😁
00:13
Andrey Grechka
Рет қаралды 57 МЛН
Incredible Dog Rescues Kittens from Bus - Inspiring Story #shorts
00:18
Fabiosa Best Lifehacks
Рет қаралды 28 МЛН
Round Robin Scheduling - Solved Problem (Part 1)
19:54
Neso Academy
Рет қаралды 402 М.
Uniprocessor Scheduling 3: Feedback
13:47
Jacob Schrum
Рет қаралды 14 М.
Round Robin Algorithm (Example) | Operating Systems
4:34
Florian Dalwigk
Рет қаралды 18 М.
Round Robin CPU Scheduling Algorithm
8:11
TutorialsPoint
Рет қаралды 96 М.
Round Robin - CPU Scheduling
9:05
Mifta Sintaha
Рет қаралды 229 М.
Shortest Remaining Time First (SRTF)
3:51
y2b5
Рет қаралды 64 М.
Oh No! My Doll Fell In The Dirt🤧💩
00:17
ToolTastic
Рет қаралды 11 МЛН