Scheduling Algorithms - Shortest Job First (SJF)
Vložit
- čas přidán 1. 08. 2024
- Operating System: Shortest Job First (SJF) Scheduling Algorithm in OS.
Topics discussed:
1) Shortest Job First (SJF) Scheduling Algorithm.
2) Non-Preemptive Shortest Job First (SJF).
3) Preemptive Shortest Job First (SJF).
4) Calculation of Average Waiting Times for Non-Preemptive and Preemptive Shortest Job First (SJF) Algorithms.
5) Problems with Shortest Job First (SJF) and approaches to address those problems.
Follow Neso Academy on Instagram: @nesoacademy (bit.ly/2XP63OE)
Follow me on Instagram: @jaiz_itech (bit.ly/2M3xyOa)
Contribute: www.nesoacademy.org/donate
Memberships: bit.ly/2U7YSPI
Books: www.nesoacademy.org/recommende...
Website ► www.nesoacademy.org/
Forum ► forum.nesoacademy.org/
Facebook ► goo.gl/Nt0PmB
Twitter ► / nesoacademy
Music:
Axol x Alex Skrindo - You [NCS Release]
#OperatingSystemByNeso #OperatingSystem #SJF #SchedulingAlgorithms #os
Thank you for watching and see you in the next one.
thanks for providing us with so good lectures for free, God bless you!
at 11:00 FCFS solution:
Assuming arrival time = 0 for all of them, therefore, we start from P1 until P4 in order.
ID C/T T/T W/T B/T
P1 6 6 0 6
P2 14 14 6 8
P3 21 21 14 7
P4 24 24 21 3
C/T - completion time, T/T - Turnaround Time, W/T - Waiting Time, B/T - Burst Time, A/T - Arrival Time
T/T = C/T - A/T
W/T = T/T - B/T
Average W/T = (0+6+14+21)/4 = 10.25 milliseconds.
Sir 0+6+14+21=41
41/5=8.2ms
How come 10.2
Sir you have to divide 41 by 4 . Because there is only 4 process. But you are dividing 41 by 5 that's why you are getting wrong answer
only few people finish this series. like if you came all the way from 1 to 43
wtf you talking about i finished it in 2 days
@@vrajparikh8630 and remembered nothing
@@vrajparikh8630 wtf how, i took 2 weeks to get here, you didnt even try to absorb the knowledge did u ?
Very helpful, watched from the begining, thank you for doing this vid, please continue with this topic!
I LOVE YOU MAN! YOUR DISCUSSION IS THE SAME WITH MY PROF WHO DON'T EXPLAIN EVERYTHING THOROUGHLY
thank you for uploading this. looking forward to future videos in this series. pls upload asap.
Thank you! This was a great explanation
You just nailed it man !!!
Thank you so much
Thank you for the hard work... Really appreciated
Kindly add more videos in this series of scheduling .If you could do it at the earliest.
Awesome explanation
Very easy and simple explanation... Superb sir.. Thanku
Reflects ur knowledge highly 💯✨
thank for the explanation .... its vers clearly ......
Thank you. Good explanation. Plz cover all the topics in OS
Thanks a lot sir
thank you very much sir for this video
Thank you so much
Thank You for this❤️
thanks so much
Thank you so much sir...! 👍🏻
The way u say 'Gantt Chart' it sounds like something else. LOL :)
Chart kahan hai!!?? Gantt mein daal liye ho kya chart sala sab? Ab kaise?...
Thanks sir for your knowledge
Superb question
Tnk u so mch
Sir please complete course as soon as possible
best explanation
thanks for ur video
Sir please complete the course. Thanks you
Hi Neso, thank you for teaching us valuable information, is (SJF) has the same meaning of (SSTF) algorithm ?? Many thanks
Superb keep uploading your videos
Thanks 🙌
Thankyou sir
thankyou sir for your help
@Neso Academy hello sir, i am not able to understand the disadvantages you tell in last, can you give a brief example on it , i mean we have covered both ways easily so what issue left
Thank you so much sir 😌😌
THANKSS
Do we know beforehand after what time the process would be stopping for an i/o operation?
Sir, my All doubt are clear regarding SJFS .
Does process scheduling have a lot of practical use for programmers?
22:46 maybe 'total waitin gtime' could be described as 'start time'
If arrival time is not given , could we assume arrival time as 0 or it could be compute from Gantt chart?
Is I/O time included in the Burst Time?
If they give process time only how can we calculate the program clarify my doubt
nice!!!!!!
How can you know the burst time without running the process at least once?
have the same question
Assumptions bro
hi sir ...your video lectures was nice...will your share your slides sir....my humble request
Instead of calculating waiting time with the formula in this video, I used the previous formula from the FCFS video which is:
Waiting Time = Turnaround Time - Burst Time And I actually got the same answer of 6.5 units.
Is this just a coincidence or will that formula always work for SJF as well?
No it's not a coincidence, that formula also works for every scheduling algorithms.
How to get the burst time?
At 15:58 , you said that p4 has entered into the gantt chart. But, where did p3 gone sir? Mean, please explain how p4 came into the gantt chart sir
I heard NESO is hiring developers.
Can u send me the link to register?
@@nesoacademy Thank you sir.
Sir please PCV topic teaching ❤❤
👍👍👍
Sir so nice teaching and very easy sloveing questions ❤❤❤❤❤❤❤❤
better than sir faisal cheema thank u
hi sir
please tell me how waiting time will be calculated when we are not given with arrival time in FCFS .
(11:00)
Not possibe because FCFS primarily
depends on arrival time
calculated as per the process id
Gantt chart
I don't understand about preemptive so explain not clear about point 16:38
Who has calculated the average waiting time using FCFS algorithm? I got an average waiting time of 8.75
NVM I had missed the assumption that all the processes are assumed to have arrived at the same time!
It's name should be "Shortest Approximate Remaining Next CPU Burst First Algorithm"
if sjf is preemptive then what is srtf then?
SJF [ preemptive ] and SRTF is same
SJF [ non preemptive ] is different
10:50 How can we find through FCFS arrival time is not given?? Please help
Same question bro
He taught that in previous lecture.
processes have less process id will be given the cpu first. so the order will be p1,p2,p3,p4.
He said at 9:05 that we assume that the processes arrived at the same time (arrival time =0).
@@mukheemmohammed6756 thank you
Mam z
gaaand chart!!!
Ain't it "Shortest remaining time first" ???