Scheduling Algorithms - Shortest Job First (SJF)

Sdílet
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

Komentáře • 87

  • @chulbuli_titli
    @chulbuli_titli Před 4 lety +56

    Thank you for watching and see you in the next one.

  • @nisharathod2945
    @nisharathod2945 Před 3 lety +39

    thanks for providing us with so good lectures for free, God bless you!

  • @DaiMoscv
    @DaiMoscv Před rokem +32

    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.

    • @rashmipurad9243
      @rashmipurad9243 Před rokem

      Sir 0+6+14+21=41
      41/5=8.2ms
      How come 10.2

    • @pvkvlogs5299
      @pvkvlogs5299 Před rokem +3

      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

  • @hacaneh4508
    @hacaneh4508 Před 4 lety +110

    only few people finish this series. like if you came all the way from 1 to 43

    • @vrajparikh8630
      @vrajparikh8630 Před 2 lety +1

      wtf you talking about i finished it in 2 days

    • @kornelijussliubauskas8299
      @kornelijussliubauskas8299 Před 2 lety +6

      @@vrajparikh8630 and remembered nothing

    • @minhhoangcong9155
      @minhhoangcong9155 Před rokem

      @@vrajparikh8630 wtf how, i took 2 weeks to get here, you didnt even try to absorb the knowledge did u ?

  • @alexandraxu7643
    @alexandraxu7643 Před 4 lety +12

    Very helpful, watched from the begining, thank you for doing this vid, please continue with this topic!

  • @franciscrypto9143
    @franciscrypto9143 Před rokem +3

    I LOVE YOU MAN! YOUR DISCUSSION IS THE SAME WITH MY PROF WHO DON'T EXPLAIN EVERYTHING THOROUGHLY

  • @Rishi-nv7bp
    @Rishi-nv7bp Před 4 lety +3

    thank you for uploading this. looking forward to future videos in this series. pls upload asap.

  • @gyasisturgis8955
    @gyasisturgis8955 Před 2 lety +1

    Thank you! This was a great explanation

  • @vinayakash299
    @vinayakash299 Před rokem

    You just nailed it man !!!
    Thank you so much

  • @usamayousaf1847
    @usamayousaf1847 Před 3 lety +1

    Thank you for the hard work... Really appreciated

  • @vivektheachillean
    @vivektheachillean Před 4 lety +3

    Kindly add more videos in this series of scheduling .If you could do it at the earliest.

  • @mokera3801
    @mokera3801 Před 4 lety +8

    Awesome explanation

  • @supriyayj
    @supriyayj Před 4 lety +7

    Very easy and simple explanation... Superb sir.. Thanku

  • @DalipsinghSingh-uz5uk
    @DalipsinghSingh-uz5uk Před 3 lety +1

    Reflects ur knowledge highly 💯✨

  • @yunicoardianpradana7288
    @yunicoardianpradana7288 Před 4 lety +2

    thank for the explanation .... its vers clearly ......

  • @rohinimv3412
    @rohinimv3412 Před 3 lety +1

    Thank you. Good explanation. Plz cover all the topics in OS

  • @srihariyallala8468
    @srihariyallala8468 Před 4 lety +4

    Thanks a lot sir

  • @saddamahmad2310
    @saddamahmad2310 Před 4 lety +2

    thank you very much sir for this video

  • @Ahmed_Alaini
    @Ahmed_Alaini Před 5 měsíci +1

    Thank you so much

  • @aleinadmay9807
    @aleinadmay9807 Před rokem

    Thank You for this❤️

  • @phasicaweldelul1119
    @phasicaweldelul1119 Před 3 lety +2

    thanks so much

  • @kirthivino6357
    @kirthivino6357 Před 2 lety +1

    Thank you so much sir...! 👍🏻

  • @FlamyBruh
    @FlamyBruh Před 3 lety +5

    The way u say 'Gantt Chart' it sounds like something else. LOL :)

    • @adnan7698
      @adnan7698 Před 2 lety

      Chart kahan hai!!?? Gantt mein daal liye ho kya chart sala sab? Ab kaise?...

  • @gatecomputerscience1484
    @gatecomputerscience1484 Před 2 lety +1

    Thanks sir for your knowledge

  • @Pr3kashSingh
    @Pr3kashSingh Před 4 lety +2

    Superb question

  • @sagar83205
    @sagar83205 Před 3 lety +2

    Tnk u so mch

  • @venkataiahgundae239
    @venkataiahgundae239 Před 4 lety +6

    Sir please complete course as soon as possible

  • @ndaghakangoma9153
    @ndaghakangoma9153 Před 3 lety +1

    best explanation

  • @TuanNguyen-rx1vf
    @TuanNguyen-rx1vf Před 3 lety +1

    thanks for ur video

  • @akashkamble224
    @akashkamble224 Před 4 lety +6

    Sir please complete the course. Thanks you

  • @assulaimi7973
    @assulaimi7973 Před rokem +2

    Hi Neso, thank you for teaching us valuable information, is (SJF) has the same meaning of (SSTF) algorithm ?? Many thanks

  • @nishithamuthuluru7636
    @nishithamuthuluru7636 Před 4 lety +2

    Superb keep uploading your videos

  • @wisdommatthew6775
    @wisdommatthew6775 Před 2 lety

    Thanks 🙌

  • @dhanushsivajaya1356
    @dhanushsivajaya1356 Před 3 lety +1

    Thankyou sir

  • @lucakagwe
    @lucakagwe Před 2 lety

    thankyou sir for your help

  • @adityasaini8437
    @adityasaini8437 Před rokem

    @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

  • @SadhanaRd
    @SadhanaRd Před 2 lety

    Thank you so much sir 😌😌

  • @ayushiyadav1
    @ayushiyadav1 Před 2 měsíci

    THANKSS

  • @priteshsahu8645
    @priteshsahu8645 Před 7 měsíci

    Do we know beforehand after what time the process would be stopping for an i/o operation?

  • @prernagarg5892
    @prernagarg5892 Před 3 lety +1

    Sir, my All doubt are clear regarding SJFS .

  • @omarb155
    @omarb155 Před rokem

    Does process scheduling have a lot of practical use for programmers?

  • @trywellwashington7506
    @trywellwashington7506 Před 4 lety +3

    22:46 maybe 'total waitin gtime' could be described as 'start time'

  • @shwetashaiva4307
    @shwetashaiva4307 Před 3 měsíci

    If arrival time is not given , could we assume arrival time as 0 or it could be compute from Gantt chart?

  • @123gregery
    @123gregery Před 4 dny

    Is I/O time included in the Burst Time?

  • @bachelorcookingchannel3165

    If they give process time only how can we calculate the program clarify my doubt

  • @kavishkanilan9137
    @kavishkanilan9137 Před 2 lety

    nice!!!!!!

  • @kunjupulla
    @kunjupulla Před rokem +4

    How can you know the burst time without running the process at least once?

  • @musicmaniacs7978
    @musicmaniacs7978 Před rokem

    hi sir ...your video lectures was nice...will your share your slides sir....my humble request

  • @juanfernandez1504
    @juanfernandez1504 Před 2 lety +10

    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?

    • @yagzceylan4878
      @yagzceylan4878 Před 2 lety +4

      No it's not a coincidence, that formula also works for every scheduling algorithms.

  • @user-lm3zy2sk4i
    @user-lm3zy2sk4i Před 7 měsíci

    How to get the burst time?

  • @chundurudivya3867
    @chundurudivya3867 Před 7 dny

    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

  • @moviesnight248
    @moviesnight248 Před 4 lety +5

    I heard NESO is hiring developers.
    Can u send me the link to register?

  • @pragyarupsi1594
    @pragyarupsi1594 Před 9 měsíci

    Sir please PCV topic teaching ❤❤

  • @shilpamaddi2510
    @shilpamaddi2510 Před 3 lety +2

    👍👍👍

  • @pragyarupsi1594
    @pragyarupsi1594 Před 9 měsíci

    Sir so nice teaching and very easy sloveing questions ❤❤❤❤❤❤❤❤

  • @t2gamerz4
    @t2gamerz4 Před 2 měsíci

    better than sir faisal cheema thank u

  • @pragatibatra5394
    @pragatibatra5394 Před rokem

    hi sir
    please tell me how waiting time will be calculated when we are not given with arrival time in FCFS .
    (11:00)

    • @chakradharthota1100
      @chakradharthota1100 Před rokem

      Not possibe because FCFS primarily
      depends on arrival time

    • @KM-sf6zy
      @KM-sf6zy Před 11 měsíci

      calculated as per the process id

  • @criminalcoder6307
    @criminalcoder6307 Před 3 lety +1

    Gantt chart

  • @chheangthina1266
    @chheangthina1266 Před měsícem

    I don't understand about preemptive so explain not clear about point 16:38

  • @brightontandabantu
    @brightontandabantu Před 3 lety +1

    Who has calculated the average waiting time using FCFS algorithm? I got an average waiting time of 8.75

    • @brightontandabantu
      @brightontandabantu Před 3 lety

      NVM I had missed the assumption that all the processes are assumed to have arrived at the same time!

  • @arpitanand4248
    @arpitanand4248 Před 3 lety +4

    It's name should be "Shortest Approximate Remaining Next CPU Burst First Algorithm"

  • @yashopmukhia5115
    @yashopmukhia5115 Před rokem

    if sjf is preemptive then what is srtf then?

    • @GAMER_KA-13
      @GAMER_KA-13 Před rokem

      SJF [ preemptive ] and SRTF is same
      SJF [ non preemptive ] is different

  • @mantubhattacharya6238
    @mantubhattacharya6238 Před 3 lety +3

    10:50 How can we find through FCFS arrival time is not given?? Please help

  • @lesterprobadora5995
    @lesterprobadora5995 Před 3 lety +1

    Mam z

  • @maqsoodmemon7212
    @maqsoodmemon7212 Před 3 lety +2

    gaaand chart!!!

  • @Shivam-kz2dg
    @Shivam-kz2dg Před 11 měsíci

    Ain't it "Shortest remaining time first" ???