CPU Scheduling: SJF & SRTF | L 7 | Operating System | GATE 2022

  Рет қаралды 63,770

Unacademy Computer Science

Unacademy Computer Science

Күн бұрын

The Great Learning Festival is here!
Get an Unacademy Subscription of 7 Days for FREE!
Enroll Now - unacademy.com/...
.. Click for free access to Educator's best classes: : www.unacademy....
For regular updates follow : unacademy.com/...
To purchase please click : unacademy.onel...

Пікірлер: 64
@UnacademyComputerScience
@UnacademyComputerScience Жыл бұрын
GATE Unlock25 Offer Get flat 25% & FREE Extension Join the new Foundation batches for GATE, ESE*, & PSUs 2024 ➤ Subscribe today: unacademy.com/goal/gate-cs-it/NVLIA/subscribe?referral_code=VDEEP10
@RandomMan271
@RandomMan271 10 ай бұрын
Lecture starts at 7:00
@HarshSharma-tq7gg
@HarshSharma-tq7gg 3 жыл бұрын
for SJF : avg. WT=1.6 ; avg. TAT=4.6 ; L = 15 ; throughput = 1/3 ;
@akshaykushwaha7003
@akshaykushwaha7003 3 жыл бұрын
Start 7:00
@PEAKY_BLINDERS_-nt4iv
@PEAKY_BLINDERS_-nt4iv 3 жыл бұрын
Akshay bhai OP !
@detector_aryan
@detector_aryan 2 жыл бұрын
TQ
@facta2z692
@facta2z692 3 ай бұрын
gate clear hpgya?
@RohanKumar-ig6wo
@RohanKumar-ig6wo 2 жыл бұрын
Mind blowing! Hats off for ur efforts ❤️
@Ghkfdvbj
@Ghkfdvbj 3 жыл бұрын
How does OS know burst time before it execute on CPU.
@replyingtomemeansyourstupi8996
@replyingtomemeansyourstupi8996 2 жыл бұрын
Experience
@akhil2721
@akhil2721 Жыл бұрын
May be it would depend on the size of processes. Larger the size of processes more time it would take.
@sayantanmanna1360
@sayantanmanna1360 Жыл бұрын
Head towards the next lecture to unveil this mystery 😅
@thanatos221
@thanatos221 Жыл бұрын
Pcb record it
@ankitkhewle873
@ankitkhewle873 Жыл бұрын
It is the problem with SJF and SRTF as OS don't know burst time, practical implementation of SJF and SRTF is not possible..
@jiwnaniakshay8774
@jiwnaniakshay8774 3 жыл бұрын
Hw answers: 1. For SJF: avg TAT= 4.6 avg WT= 1.6 2. No of context switches= 2 3. For SRTF: Avg WT= 5.5
@facta2z692
@facta2z692 3 ай бұрын
bhai gate clear hogya kya
@digbijayagudu7454
@digbijayagudu7454 Ай бұрын
SRTF average waiting time is 22/7=3.25 your answer is wrong
@milindjain544
@milindjain544 2 жыл бұрын
May be a silly doubt, but ready queue is a queue means first in first out according to it order should be p1,p2,p3 . 12:41
@suyashrahatekar4964
@suyashrahatekar4964 2 жыл бұрын
I dont think the queue data structure and the actual data structure used to implement ready queue in OS are the same. Your answer would be right only in case of FCFS.
@educationhacks5320
@educationhacks5320 3 жыл бұрын
1Q.Avg turn around time is = (12+13+14)/3 2Q.22/4 3Q.2 Context switches
@digbijayagudu7454
@digbijayagudu7454 Ай бұрын
Correct brother same answer
@__singhayush__
@__singhayush__ 3 жыл бұрын
For that LRTF question, consider the process with the highest burst time will get scheduled first and if two processes have same burst times then the process with the lower pid will get scheduled first. This way you will get AVG TAT = 13
@crackthemind9821
@crackthemind9821 10 ай бұрын
Thanks brother... But sir ne LRTF to nhi padhaya hai i think
@__singhayush__
@__singhayush__ 10 ай бұрын
Padhaya nhi but ek question homework me diya hai iss video me...uska hi answer ye tha
@crackthemind9821
@crackthemind9821 10 ай бұрын
Thanks... Bro... Atleast you answered... Kya kar rahe ho abhi??
@venom-kl3un
@venom-kl3un 4 ай бұрын
@@crackthemind9821 abhi to three sum kr rha hu bro
@neha_coding5563
@neha_coding5563 3 жыл бұрын
HW ans : STRF no.of context switches=2 LRTF avg.TAT= 13 STRF avg.wt=22/4=5.5milliseconds
@Ghkfdvbj
@Ghkfdvbj 3 жыл бұрын
How come LRTF answer is 13, i am getting like (14+12+8)/3
@ramkumarramkumar-du5il
@ramkumarramkumar-du5il 3 жыл бұрын
@@Ghkfdvbj i'm also getting the same bro
@suyashrahatekar4964
@suyashrahatekar4964 2 жыл бұрын
@@Ghkfdvbj check your gannt chart, u didnt understand the algorithm carefully. Once P1 and P2 are at same remaining time, P1 will get priority for 1ms and P2 will wait, once all three are at same remaining time, P0 will get priority over other two for 1ms. The gantt chart will have many such 1ms sections.
@shakuntalakamade
@shakuntalakamade Жыл бұрын
same!!!
@vaibhavmetange6875
@vaibhavmetange6875 3 жыл бұрын
Q1)No of context switch =2 Q2) Avg TAT =13 Q3) Avg WT = 5.5
@vibhurathore63
@vibhurathore63 3 жыл бұрын
how 2nd answer came mine is coming 11.34
@nithinm0836
@nithinm0836 3 жыл бұрын
@@vibhurathore63 It is longest 'remaining' time first algo. So it would be p2 p1p2 p1p2 p0 p1p2 p0 p1p2 0 4 5 6 7 8 9 1011 121314 after p2 completes 4, p2 and p1 both will be having 4. Its a tie-breaker, so go with process id p1. p1 executes for 1 and becomes 3. Now p2 already with 4 is longest, so again p2 is executed. And this thing continues, till all the processes finishes.
@agnidebmukherjee9756
@agnidebmukherjee9756 2 жыл бұрын
@@nithinm0836 But all 3 arrive at the same time So 2 will execute completely first then 1 and then 0 .
@joseph2073
@joseph2073 2 жыл бұрын
@@agnidebmukherjee9756 yes bro .. so avg tat , the answer is 11.3 right?
@VishuDarwaja
@VishuDarwaja Жыл бұрын
14:26 Thats what she said
@honey.hemant_
@honey.hemant_ 3 жыл бұрын
Thank you Sir ☺️
@soumyadeepbarik5711
@soumyadeepbarik5711 5 ай бұрын
GATE-2006 QUESTION , the SCHEDULING ALGORITHM , behaves like NON-PREEPTIVE , evenagter being, S.R.T.F , how can it be possible?
@coder1163
@coder1163 2 ай бұрын
❤love you sir
@muskansharma4991
@muskansharma4991 3 жыл бұрын
Thanks 😊
@Pragyanam833
@Pragyanam833 9 ай бұрын
For sjf: avg tat= 4.6 Avg wt=1.6 SL=15-0=15 Throughput= 5/15= 1/3 2nd hw: avg tat= 13 unit Q.3. no. Of contex switch : 2 Q.4 avg wt = 5.5
@Patrick-qt9ow
@Patrick-qt9ow 3 жыл бұрын
Thanks You Sir
@anushasrivastava3848
@anushasrivastava3848 3 жыл бұрын
For SJF: Avg. TAT= 4.6 Avg. WT = 1.6 L= 15 Throughput= 1/3
@atiyawarsi111
@atiyawarsi111 Жыл бұрын
He teaches the best
@mdghufranalam7369
@mdghufranalam7369 2 жыл бұрын
❤️🙏
@yeaahhhpriya
@yeaahhhpriya Жыл бұрын
start at 6:56
@aniketbasu3865
@aniketbasu3865 3 жыл бұрын
dimag khul gaya pura
@networking236
@networking236 Жыл бұрын
From 3-5,process p4 does context switching for 2 times using itself...so total switching might be 8... doesn't it so
@55swatantrasingh77
@55swatantrasingh77 2 жыл бұрын
If a process P1 terminated after completion and P2 comes in CPU then context switching wil happen or not???
@networking236
@networking236 Жыл бұрын
Context saving doesn't occur so no switching hppn
@durgfestivalvibes
@durgfestivalvibes 3 жыл бұрын
Thanks sir
@haryanvimukeshbhodiwaal689
@haryanvimukeshbhodiwaal689 Жыл бұрын
❤️❤️❤️❤️🔥
@aritrasaha3938
@aritrasaha3938 9 ай бұрын
For the H/W LRTF question: The gantt chart will look like- p3 - 0 to 4 p2 - 4 to 5 p3 - 5 to 6 p2 - 6 to 7 p3 - 7 to 8 p1 - 8 to 9 p2 - 9 to 10 p3 - 10 to 11 p1 - 11 to 12 p2 - 12 to 13 p3 - 13 to 14 TAT = (12+13+14)/3 = 13 units
@TarunKumar-cn6in
@TarunKumar-cn6in 2 жыл бұрын
Last problem was interesting
@avinashgupta2308
@avinashgupta2308 2 жыл бұрын
Notes ?
@Piya_Journal_Unfolded
@Piya_Journal_Unfolded 3 жыл бұрын
Homework ka answer h....
@UnacademyComputerScience
@UnacademyComputerScience Жыл бұрын
Prices rising by 10% on 30th April'23 11:59 PM Flat 25% off & up to 4 Months Extra*! Save up to 53% Subscribe Now - unacademy.com/goal/gate-cs-it/NVLIA/subscribe?plan_type=iconic Unacademy GATE & ESE Ultra Combat 23rd April at 11:00 AM Enroll Now: unacademy.com/scholarship/ULTRACOMBATGATEESE
@RohitRaj-t4c5v
@RohitRaj-t4c5v Жыл бұрын
10:25 sir ye aap kya chatwaa rahe wo???🤣🤣🤣🤣🤣🤣😂😂😂😂
@funtoos3627
@funtoos3627 Жыл бұрын
Sir sometime your voice gets high and after few seconds it gets low , it's too much irritating. Please try to speak with same frequency 🙏 Otherwise you are amazing and your way of teaching is excellent 👌
@HarshKumarVermaVlog
@HarshKumarVermaVlog 3 жыл бұрын
😂😂😂😂
@soumyadeepbarik5711
@soumyadeepbarik5711 2 жыл бұрын
BATTER k jaayga BAT-WOMAN v bol shakte the
@suyashrahatekar4964
@suyashrahatekar4964 2 жыл бұрын
seriously?? 😑 kuch accha comment kr dete isse accha , HW answer comment krte , doubt puchte , lekin nhi hame toh bakchodi par focus krna h bc.
@Patrick-qt9ow
@Patrick-qt9ow 3 жыл бұрын
Thanks You Sir
CPU Scheduling: SRRN and Priority Based Algorithms | L 8 | Operating System | GATE 2022
1:05:47
CPU Scheduling: Round Robin Algorithm | L 9 | Operating System | GATE 2022 #VishvadeepGothi
1:03:26
We Attempted The Impossible 😱
00:54
Topper Guild
Рет қаралды 56 МЛН
Try this prank with your friends 😂 @karina-kola
00:18
Andrey Grechka
Рет қаралды 9 МЛН
CPU Scheduling: Scheduling Times and FCFS Algorithm | L 6 | Operating System | GATE 2022
1:12:58
Simon Sinek's Advice Will Leave You SPEECHLESS 2.0 (MUST WATCH)
20:43
Alpha Leaders
Рет қаралды 2,4 МЛН
We Attempted The Impossible 😱
00:54
Topper Guild
Рет қаралды 56 МЛН