Shortest Job First Scheduling Algorithm || SJF || Shortest Process Next || SPN || Non Preemptive| OS

Поделиться
HTML-код
  • Опубликовано: 21 окт 2024

Комментарии • 63

  • @ajayadithya952
    @ajayadithya952 3 месяца назад +5

    P4 burst time is less than all the process then why you have taken po process first

    • @SudhakarAtchala
      @SudhakarAtchala  3 месяца назад +14

      At A.T 0 only p0 in ready queue. So, cpu completed p0 execution.now completetion time is 3 . At 3 only P1 in ready queue, i.e P2, p3, p4 are not in ready queue. Hope ur doubt clarified.Plz subscribe to the channel and if possible share with your friends. Thanks in advance.

  • @aggipettiundhamama6217
    @aggipettiundhamama6217 3 года назад +5

    Nice video sir, understood very well

    • @SudhakarAtchala
      @SudhakarAtchala  3 года назад +4

      Glad to hear that ledu aggi petta. Plz subscribe to the channel and if possible share with your friends. Thanks

  • @likithareddylikky1198
    @likithareddylikky1198 2 года назад +4

    Thanks for every video sir after completion of my exams I will share with all my contacts to subscribe... Now I completed 75% of syllabus because of you .. It is very easy to understand😉

  • @maneeshadesetty1991
    @maneeshadesetty1991 3 месяца назад +5

    As you said we have to check shortest burst time then p4 has burst time 2 then you have taken p0

  • @potnurukanakarao5003
    @potnurukanakarao5003 2 года назад +3

    You're Teaching is awsome sir.
    Belive me, You are helping a lot of students For better scorings in their examinations.
    Already subscribed your channel from 2 accounts. Thankyou For all your lectures.

  • @dharanidharani2496
    @dharanidharani2496 Год назад +5

    Thanks a lot sir no more words to express my gratitude sir 🥺✨

    • @SudhakarAtchala
      @SudhakarAtchala  Год назад +1

      Most welcome. Plz subscribe to the channel and if possible share with your friends. Thanks in advance..

  • @felipegalvezcarrasco7834
    @felipegalvezcarrasco7834 4 года назад +2

    thank you teacher, greetings from Chile

    • @SudhakarAtchala
      @SudhakarAtchala  4 года назад +3

      Plz subscribe to our channel and if possible share with your friends. Thanks

  • @birukanley6171
    @birukanley6171 2 года назад +2

    I have been looking someone like you .
    you did it

    • @SudhakarAtchala
      @SudhakarAtchala  2 года назад

      Thanks. Plz subscribe to the channel and if possible share with your friends. Thanks in advance.

  • @mugilan_sakthi
    @mugilan_sakthi Год назад

    Tq so much sir your teaching way good keep going sir

    • @SudhakarAtchala
      @SudhakarAtchala  Год назад

      Welcome. Plz subscribe to the channel and if possible share with your friends. Thanks in advance..

  • @speci1119
    @speci1119 2 года назад +1

    Sir tqsm
    Ur teaching was best n we r getting better way than our cls lectures 😇tqsm

    • @SudhakarAtchala
      @SudhakarAtchala  2 года назад

      Welcome. Plz subscribe to the channel and if possible share with your friends. Thanks in advance.

  • @VishnuVardhan-xd9jc
    @VishnuVardhan-xd9jc 4 месяца назад +1

    Meeru cheppali anukuntunna content and explanation good sir. But meeru total english kaakundaa telugu lo kuda chepthey baaguntundhi sir. It my openion sir...

    • @SudhakarAtchala
      @SudhakarAtchala  4 месяца назад +1

      Already I upload a video on this in my Telugu channel. refer that , type computer Pantulu operating systems. Plz subscribe to the channel and if possible share with your friends. Thanks in advance.

  • @killer4791
    @killer4791 3 месяца назад +11

    To whoever who is confused as of to why, after P0, the p1 process is taken in consideration, the reason is as follows :
    "Firstly, at 0th second, only one process is available in the ready queue, which is p0. So, p0 will be executed first.
    Secondly, the time taken i.e Burst time for the p0 i.e the total time taken to complete the execution of p0 process is 3 seconds.
    So, in these 3 seconds of execution, look at the arrival times column. Which process has loaded into the ready queue during the 3 seconds?
    Only p1 process is there in the ready queue in the 3 seconds.
    That is why, p1 process was considered and not p4.
    Because, look at p4's arrival time.
    It is going to arrive into the ready queue at 8th second, but only 3 seconds have been passed.
    To make it simpler for you to understand what is going on, think about two scenarios happening simultaneously
    "In your left, there is ready queue. In this ready queue, the process are being loaded.
    In your right hand, the CPU is being assigned to the Process from the left hand, and being executed.
    During the time when the CPU executes the process, the processes continue to be loaded into the left hand i.e ready queue"
    I hope I have put it in more sensible words and in more simpler words for you to understand and I hope that I have cleared your doubt.
    Gimme a like if I did :>
    And aswell, thank you sir.

    • @SudhakarAtchala
      @SudhakarAtchala  3 месяца назад +1

      Nice. Plz subscribe to the channel and if possible share with your friends. Thanks in advance.

  • @tiktikgoes9
    @tiktikgoes9 10 месяцев назад +1

    I just love your teaching sir!!!

    • @SudhakarAtchala
      @SudhakarAtchala  10 месяцев назад

      Glad to hear that. Plz subscribe to the channel and if possible share with your friends. Thanks in advance..

  • @Dev_Zone_404
    @Dev_Zone_404 8 месяцев назад

    very Good explanation sir

    • @SudhakarAtchala
      @SudhakarAtchala  8 месяцев назад

      Thanks and welcome. Plz subscribe to the channel and if possible share with your friends. Thanks in advance..

  • @navyasrimuthireddy9661
    @navyasrimuthireddy9661 3 года назад +11

    Sir meru shortest burst time will be executed first Ani chepparu kadha
    Mari problem lo p0 having 3 and P1 having 6 kadha sir mari Gantt chart lo p0 tarvatha P1 ni arrive chesaru enti sir p0 having 3 but shortest job first is p4 that having burst time 2only p4ni p1tarvatha arrive chesaru Mari sjf antey processes which is having shortest burst time ani chepparu kadha pls answer my question sir....

    • @SudhakarAtchala
      @SudhakarAtchala  3 года назад +8

      At A.T 0 only p0 in ready queue. So, cpu completed p0 execution.now completetion time is 3 . At 3 only P1 in ready queue, i.e P2, p3, p4 are not in ready queue. Hope ur doubt clarified Navya.
      Plz subscribe to the channel and if possible share with your friends. Thanks in advance.

  • @nitindhamale8789
    @nitindhamale8789 3 года назад

    Very good Explain sir !!

    • @SudhakarAtchala
      @SudhakarAtchala  3 года назад +1

      Thanks and welcome. Plz subscribe to the channel and if possible share with your friends. Thanks in advance.

  • @OurProblemsOurSolutions
    @OurProblemsOurSolutions 5 месяцев назад

    Informative

    • @SudhakarAtchala
      @SudhakarAtchala  5 месяцев назад

      Thanks. Plz subscribe to the channel and if possible share with your friends. Thanks in advance..

  • @516maibu.jatoth8
    @516maibu.jatoth8 3 года назад +2

    Thank u sir....

    • @SudhakarAtchala
      @SudhakarAtchala  3 года назад

      Welcome. Plz subscribe to the channel and if possible share with your friends. Thanks in advance.

    • @516maibu.jatoth8
      @516maibu.jatoth8 3 года назад

      Sure sir.....thank u

  • @klaidanedeguzman8914
    @klaidanedeguzman8914 3 года назад +1

    thank you so much.. your better than my prof hahaha

    • @SudhakarAtchala
      @SudhakarAtchala  3 года назад +1

      You're welcome 😊 Klai Dane De Guzman. Plz subscribe to the channel and if possible share with your friends. Thanks

  • @kavii1696
    @kavii1696 2 месяца назад

    Thankyou sir

    • @SudhakarAtchala
      @SudhakarAtchala  2 месяца назад

      Welcome. Please like the video, and share it with your friends. Thanks in advance.

  • @runallinonechannel4732
    @runallinonechannel4732 2 года назад +35

    P1 burst time is high compare to others then y taken sir

  • @vineethatummala2511
    @vineethatummala2511 Год назад +3

    But p4 has least burst time than p1.then why did you consider p1 first?

    • @SudhakarAtchala
      @SudhakarAtchala  Год назад

      What about Arrival times ? Plz subscribe to the channel and if possible share with your friends. Thanks in advance..

  • @МаркБезпалый
    @МаркБезпалый 4 года назад +1

    Thank You

    • @SudhakarAtchala
      @SudhakarAtchala  4 года назад

      Hai, plz go through my videos once. Definitely you will like more videos. Thanks
      for your encouragement and support towards our channel. Share my sessions with your friends and subscribe to our channel.Keep on following my sessions. Thank you so much.

  • @LeonArts
    @LeonArts 4 года назад +1

    Thank you man, but i've one problem that i can't solve, maybe you can help me:
    We have to use Shortest Process Next with aging technique,
    estimate the execution time of T3 knowing the previous T0, T1, T2:
    (some examples)
    1. T0=10ms T1=30us T2=0,015ms
    2. T0=200us T1=300ns T2=0,015ms
    3. T0=0,05ms T1=30ns T2=40us

  • @mangamurigayathri6727
    @mangamurigayathri6727 3 года назад +4

    Sir?? Can a sjf preemptive work if we r given a data without arraival time???

    • @SudhakarAtchala
      @SudhakarAtchala  3 года назад

      yes, we can preempt its work Gayathri. Plz subscribe to the channel and if possible share with your friends. Thanks in advance.

  • @ShirishaChawan
    @ShirishaChawan 6 месяцев назад

    Good teacher sir...but p1 have highest B.T compare to p4 then y taken p1 first

    • @SudhakarAtchala
      @SudhakarAtchala  6 месяцев назад

      But At O Arrival time , P4 doesn't exist in the ready queue(main memory). Plz subscribe to the channel and if possible share with your friends. Thanks in advance...

  • @nithyareddyvlogs5946
    @nithyareddyvlogs5946 2 месяца назад

    How can we know that the processes are in ready queue or not ? sir Plz reply i have exam tomorrow

    • @SudhakarAtchala
      @SudhakarAtchala  2 месяца назад

      Ready queue contains list of processes ready for execution. initially all programs will be stored in hard disk i.. job queue and at the time of execution os loads the programs from hard disk to main memory ie ready queue.All the best. Plz subscribe to the channel and if possible share with your friends. Thanks in advance.

  • @kvnsivani3808
    @kvnsivani3808 3 года назад +1

    Thank u a lot sir 😊😊😊

  • @AdeshShelar-qs5ct
    @AdeshShelar-qs5ct 2 года назад +1

    My question is in SJF non preemptive A.T is all 0 then Gantt chart is ?

    • @SudhakarAtchala
      @SudhakarAtchala  2 года назад

      Refer this video for srtf
      ruclips.net/video/Tcuyr91Y_Ro/видео.html
      Then both sjf and srtf become same

  • @leelakrishnamohan519
    @leelakrishnamohan519 Год назад +1

    What if arrival time is non 0 then which will consider 1st

    • @SudhakarAtchala
      @SudhakarAtchala  Год назад

      Refer to this video
      ruclips.net/video/Tcuyr91Y_Ro/видео.html
      Plz subscribe to the channel and if possible share with your friends. Thanks in advance..

  • @aishwaryaabburu
    @aishwaryaabburu 2 месяца назад

    why have you taken p1 .....u said to write based on burst time right ....its burst time is 6 how is it possible

    • @SudhakarAtchala
      @SudhakarAtchala  2 месяца назад

      plz read 1st comment reply. Plz subscribe to the channel and if possible share with your friends. Thanks in advance.

  • @chiranthchiru5075
    @chiranthchiru5075 Год назад

    Sir y did you take p1 that have a highest burst time

    • @SudhakarAtchala
      @SudhakarAtchala  Год назад

      It's a text book problem only. Plz subscribe to the channel and if possible share with your friends. Thanks in advance..