First Come First Served Scheduling (Solved Problem 1)

Поділитися
Вставка
  • Опубліковано 4 січ 2025

КОМЕНТАРІ • 146

  • @ajaylathwal3758
    @ajaylathwal3758 3 роки тому +5

    clearing such a Big topic in short time is really Talent of U

  • @yuvrajsingh5487
    @yuvrajsingh5487 10 місяців тому +2

    00:01 Discussing the problem with first come first serve scheduling algorithm
    02:16 Preparation of Gantt chart for 5 processes
    04:29 Process arrival and execution time analysis
    06:46 Determining CPU scheduling based on process arrival times and IDs.
    08:54 Turnaround time is the time taken for a process to complete its execution
    11:00 Waiting time is the time a process spends waiting to get the CPU.
    13:13 Calculation of turnaround and waiting time for processes
    15:17 Calculating average turnaround and waiting time
    17:19 Average turnaround time is 8 units, and average waiting time is 4.4 units

  • @TheAutophage
    @TheAutophage 4 роки тому +23

    Very helpful video. It helped me solve an exam excercise. Thank you my friend. Liked.

  • @MrAryya3340
    @MrAryya3340 Рік тому +1

    Teaching was a god level that's why I love neso academy ❤

  • @vivienchristy127
    @vivienchristy127 3 роки тому +15

    Thankyou so much! You explained it very well so we can understand easily

  • @KusurSiddaram
    @KusurSiddaram 2 роки тому

    Bro... I seen evry youtober video but they said but not completely so u explained us the right way of getting crrect marks .well done

  • @priyankasr978
    @priyankasr978 3 роки тому +3

    Very nice explanation. Which understand properly thank you so much for sharing it.

  • @rabeakhatoon1284
    @rabeakhatoon1284 10 місяців тому

    Amazing video it cleared all my doubts😊

  • @cobi617
    @cobi617 5 років тому +16

    at 11:00 I think it is more intuitive to think of the waiting time's formula as the scheduled time(being the time it got to use the CPU) minus the arrival time.

    • @subikshs-0857
      @subikshs-0857 3 роки тому +5

      You are right, but it won't work in case of pre-emptive algorithm, so your formula is actually for calculating response time, which is same as wait time in case of non pre-emptive.

  • @devangseksaria4888
    @devangseksaria4888 2 роки тому

    thanks a lot neso academy for providing such easy explanations

  • @johnmourad1700
    @johnmourad1700 5 років тому +9

    Nice Series really keep going , i was asking if u can share videos about deadlock because i found it a bit hard to understand by myself & thanks in advance .

  • @johnvincentaligarbes6191
    @johnvincentaligarbes6191 Рік тому +4

    This help me on my final exam. Thank very much.

  • @thali4-c7j
    @thali4-c7j Рік тому +1

    thank youuuuuu, it helps me to understand a lot.

  • @kbhargavi4400
    @kbhargavi4400 3 роки тому +3

    Awesome content!!🔥🔥

  • @jablaklandry2854
    @jablaklandry2854 3 роки тому +1

    Thanks alot . There explanation is very simple and easy to understand.

  • @gavin8535
    @gavin8535 4 роки тому +107

    I dont know why it is called burst time but not just execution time lol

    • @shreyywadhwa
      @shreyywadhwa 4 роки тому +38

      Because whenever CPU starts to execute, the clock frequency increases like a burst. So it's simply called burst time.

    • @ShubhamKumar-of1vq
      @ShubhamKumar-of1vq 3 роки тому +8

      execution time = burst time+waiting time

    • @greatymomah3853
      @greatymomah3853 2 роки тому

      Burst Time is the Time for which the process needs to be in the running state. It's not execution time

    • @preranaprasain5232
      @preranaprasain5232 2 роки тому

      Coz it's a time taken to complete their exucation

    • @asimaliblogger
      @asimaliblogger Рік тому

      Burst time: Time required by a process for CPU execution.

  • @sharonchepkemoi1300
    @sharonchepkemoi1300 6 місяців тому

    Very educative❤❤❤

  • @MuhindoMoris2003
    @MuhindoMoris2003 2 місяці тому

    perfect and precise... thank you sir

  • @monetka79
    @monetka79 4 роки тому +2

    YOU ARE THE BEST!!!!!!!!

  • @yokesht5858
    @yokesht5858 5 років тому +1

    Nice sir in your teaching is good i am easily understand

  • @sparkmedia_ID
    @sparkmedia_ID 3 роки тому

    so best ever learning video FCFS

  • @ayushiydvKG
    @ayushiydvKG 7 місяців тому

    yes, clear. thanks a lot! ❤

  • @SiDNarsale
    @SiDNarsale 4 роки тому +1

    very nice explanation sirji!

  • @vbalaji3267
    @vbalaji3267 Рік тому

    usefull video sir thank you very much❤

  • @najibtackie5148
    @najibtackie5148 2 роки тому +1

    Sooo grateful!
    Thanks a lot!!!

  • @LifeEducationBD
    @LifeEducationBD 3 роки тому

    Thank you very much sir

  • @rahuljindal3683
    @rahuljindal3683 3 роки тому +4

    In layman
    Turnaround time is.... Process ke ready queue mein aane se, fully execute/termination tak ka time
    And waiting time is ready queue mein aane se, running state/cpu allocate hone tak ka time is waiting....

  • @ewnetut6574
    @ewnetut6574 Рік тому

    One of the best

  • @cyberizer
    @cyberizer 3 місяці тому

    thank you so much!

  • @Paddy_King_Uganda
    @Paddy_King_Uganda 2 роки тому

    Thank you sir❤❤❤✊✊✊

  • @eagle_shadow6665
    @eagle_shadow6665 2 роки тому +1

    Nice thanks for this video

  • @samnguyen-nhp
    @samnguyen-nhp 9 місяців тому

    great lesson

  • @micaellachiquillo1890
    @micaellachiquillo1890 4 роки тому +1

    Thank You So Much😊

  • @leofrancisamador2658
    @leofrancisamador2658 4 роки тому +2

    this is so helpful

  • @gatecomputerscience1484
    @gatecomputerscience1484 2 роки тому +1

    Simply awesome

  • @blisca
    @blisca 2 роки тому +1

    In my opinion the inventors would have done better to distinguish the names between instants and intervals:someting like Turn Around Time INTERVAL and Waiting Time INTERVAL
    Anyway you explained it clearly,it was a pleasure to follow your videos.Thanks.

  • @HarunFarah
    @HarunFarah 2 роки тому

    great video well explained thank you

  • @ÎNFOxTUBE
    @ÎNFOxTUBE 3 роки тому

    Thank you so much for help Sir.

  • @johntonidovlog999
    @johntonidovlog999 4 роки тому +1

    Thank you so much

  • @lydiatandekanga4287
    @lydiatandekanga4287 7 місяців тому

    Clear explained

  • @EuniceAjayi-je2ve
    @EuniceAjayi-je2ve Рік тому

    Great one.

  • @mokera3801
    @mokera3801 5 років тому +2

    Thank you sooooooooooo much

  • @joanitarzzalwango6392
    @joanitarzzalwango6392 Рік тому

    Thank you sir

  • @anuhp3769
    @anuhp3769 4 роки тому

    Great video

  • @TuanNguyen-rx1vf
    @TuanNguyen-rx1vf 3 роки тому +1

    thanks for video, please upload these to ur website. PLS

  • @dhanushsivajaya1356
    @dhanushsivajaya1356 4 роки тому +1

    Thankyou sir

  • @chiragsidana
    @chiragsidana 4 роки тому +8

    sir in making the gantt chart when we have to choose between p2 and p4, we should take the p4 1st bcz it result to less average waiting time

    • @akkir6707
      @akkir6707 3 роки тому +2

      i have the same thought

    • @rishabmudliar1058
      @rishabmudliar1058 3 роки тому +1

      @@akkir6707 in FCFS if arrival time is same we select the process_id with lower id so p2 instead of p4

    • @akkir6707
      @akkir6707 3 роки тому +1

      @@rishabmudliar1058 our prof once said if you have the same arrival time then check the burst time and choose the one with fewer bt so it can finish faster. I don't know what's the correct one ngl

    • @rishabmudliar1058
      @rishabmudliar1058 3 роки тому +2

      @@akkir6707 that could be for sjf ig

    • @rishabmudliar1058
      @rishabmudliar1058 3 роки тому +1

      @@akkir6707 for fcfs we go this way

  • @kongaraniappalasrinivasrao550
    @kongaraniappalasrinivasrao550 9 місяців тому

    Thanking you sir

  • @prachikumari5574
    @prachikumari5574 2 роки тому

    Best ❤️

  • @sudiptacoachingcentre4118
    @sudiptacoachingcentre4118 3 роки тому

    Very helpful

  • @anithajhansi6589
    @anithajhansi6589 3 роки тому

    Thank you

  • @OduroChristian
    @OduroChristian 10 місяців тому

    God bless you

  • @suhasuvgowda3416
    @suhasuvgowda3416 Рік тому

    Tq sir to explain this

  • @raunaknarayan4092
    @raunaknarayan4092 3 роки тому

    1-2 saal pahley ye video series rahta tow mera OS mein badhiya no. rahta

  • @santhipriyapriya9828
    @santhipriyapriya9828 3 роки тому

    Thank you...

  • @mykun8737
    @mykun8737 2 роки тому

    thanks

  • @kirthivino6357
    @kirthivino6357 3 роки тому +1

    I don't understand why there's a shaded box in the Gantt chart...Can someone explain?

    • @majorme7144
      @majorme7144 2 роки тому +1

      Cuz after the burst time for P3 no process where present in the queue so if there will be a arrival time like 1,2 after the process P3 in the queue it will be put in there but here its is idle that is no process is waiting in the queue so we can look for the next arrival time after 3 or 3 in the table. In here we only have 4 so there will be a missing unit of time in between 3 to 4 so we r using the shaded regin.

  • @Samatha5
    @Samatha5 2 роки тому +1

    Sir, why should P5 must wait for 9 units of time... Since it came late and ntg to do with P1? Pls clarify my doubt

    • @Samatha5
      @Samatha5 2 роки тому

      @Omkar Jadhav Thank you sir😇

  • @VoiceOfBasumatary
    @VoiceOfBasumatary Рік тому +2

    It is preemptive or non preemptive? How will we know that?

    • @ayushiydvKG
      @ayushiydvKG 7 місяців тому

      its simple when u stand in a queue lets say bank queue, firstly your entire work will be done by the depositer, if you are depositing an amount, then only other person will come and get his/her work done, once you're done. thats all about nonpreemptive because, here the process will execute until its totally executed. hope u understood

  • @lukaeric3479
    @lukaeric3479 Рік тому +2

    What about RT (Response Time)?

  • @AhmadAli-xe9sl
    @AhmadAli-xe9sl 3 роки тому

    Plz share video about deadlock avoidence

  • @ITCOMEANDHEREIAM
    @ITCOMEANDHEREIAM 2 місяці тому

    is this a type of preemptive on fcfs?

  • @rahuljangir7100
    @rahuljangir7100 3 роки тому +6

    2:18 🤣🤣🤣🤣🤣🤣

  • @joanitarzzalwango6392
    @joanitarzzalwango6392 Рік тому +5

    Tomorrow is my exam

  • @hariprasad7960
    @hariprasad7960 8 місяців тому +1

    Sir possible of getting -ve in waiting time

  • @rayvencycaputolan1517
    @rayvencycaputolan1517 2 роки тому +1

    Do you have SPF or Shortest-Process-First video?
    By the way thank you for this video it helps me a lot.

  • @tushar090
    @tushar090 2 роки тому

    Thanky🐵u

  • @JbMuisha
    @JbMuisha 11 місяців тому

    sir how did u find 19 total while me i got 18 for the total sum of the bursttime

  • @knightcool7769
    @knightcool7769 8 місяців тому +1

    How do you calculate throughput

    • @retroelx3014
      @retroelx3014 4 місяці тому +1

      It is calculated by dividing number of processes by Schedule Length.
      ie. no of processes / Schedule Length

  • @caster7376
    @caster7376 Рік тому +1

    what if you have an arrival time of 1 first instead of 0?

    • @retroelx3014
      @retroelx3014 4 місяці тому

      Then the interval between 0 and 1 is idle and the process enters the ready queue at t=1

    • @caster7376
      @caster7376 4 місяці тому +1

      @@retroelx3014 i already finished the course lol but thank you so much for this, it's a heads up for those who didn't know yet, cheers

  • @nebiyatgeteya3920
    @nebiyatgeteya3920 Рік тому

    ❤❤❤❤❤

  • @akkir6707
    @akkir6707 3 роки тому +3

    is it ok if i let p4 to be first since it has less burst time than p2?

    • @wisdommatthew6775
      @wisdommatthew6775 3 роки тому

      No, First Come First Serve means the process with the least arrival time comes first which is P3 {0}

  • @jiraguyyaan72
    @jiraguyyaan72 2 роки тому

    Calculate average waiting time and turnaround time of the following given process(use FCFS scaduling algorithm)and represent by Gantt chart
    Process burst time
    P1 5
    P2 24
    P3 16
    P4 10
    P5 3

  • @harshadamahajan1215
    @harshadamahajan1215 Рік тому

    Draw cantt chart and calculate the average waiting time and average turnaround time fo processes using FCFC and SJF (non -primptice. Process p,p2,p3,p4 , burst times 10 ,5,7,3 , arrival time 0, 1,2,3 Sie please answer mi

  • @halidmustefa8175
    @halidmustefa8175 3 роки тому

    nice

  • @footballarena314
    @footballarena314 5 років тому +1

    First of all , thanks alot for this amazin tutorials
    Secondly i think there is a mistake calculating Turnaround Time
    How is Turnaround = Completion-arrival ?
    and at the same time Turnaround = wating + burst ??
    if we apply the first equation Turnaround will be always equal to burst time but the second it is diferrrent
    ??
    i hope an answer for this since i think the second equation is correct.

    • @footballarena314
      @footballarena314 5 років тому +2

      edit : i am sorry it is my mistake , i forgot that we suppose that all processes arrive at time 0 , so both equations are right (-:

  • @mohammadmoiz2197
    @mohammadmoiz2197 4 роки тому

    what is the name of the background music lol.... btw your videos are awsome .

  • @footballCartoon91
    @footballCartoon91 4 роки тому +1

    Arrival time is
    Time taken for the process to reach the "ready state" right?
    not the time when the process can use cpu i.e "running state".
    If that the case, the Gantt chart is
    actually concerning about time of the process when it is reaching "ready state" not "running state".
    Meaning, ready state is still part of ready queue of job queue i.e it still cannot use cpu at that time.

    • @58_vikassingh32
      @58_vikassingh32 4 роки тому

      what is about the waiting time formula?. It gives a waiting time of P2=7 but it should be 9 (5+4)?.Please help me out

    • @chandran-youtube
      @chandran-youtube 3 роки тому

      @@58_vikassingh32 see the arrival time..................it arrived at 6 but after idle the process P1 came at 4 so (6-4) = 2. This is the diff from 9 and 7.

    • @hemiacetal1331
      @hemiacetal1331 2 роки тому

      No, arrival time is the time at which a process enters the ready queue for the first time so it's an absolute value, not an amount of time.

    • @YASHGODBOLE-n4f
      @YASHGODBOLE-n4f Рік тому

      @@hemiacetal1331 ​ @Rishab Mudliar what if arriving time is starting from 1 ...( question me arriving time 0 nhi diya hai to gantt chart me kaha se likhe ...)

  • @songslyrics7912
    @songslyrics7912 4 роки тому

    appreciate to u

  • @000-l1c3l
    @000-l1c3l Рік тому +1

    2:09

  • @criminalcoder6307
    @criminalcoder6307 3 роки тому

    Avg waiting time = 5.4 units

  • @matiullah3058
    @matiullah3058 8 місяців тому +1

    Sir is ka FCFS ka code C++ bhi dy dy
    please

  • @khushitripura3633
    @khushitripura3633 4 роки тому +6

    I'm still confused

  • @vnnieleee
    @vnnieleee 3 роки тому +1

    Is this non preemptive or preemptive?

  • @deeksham1439
    @deeksham1439 Рік тому +1

    Is this preemptive or non preemptive

    • @ayushiydvKG
      @ayushiydvKG 7 місяців тому

      its simple when u stand in a queue lets say bank queue, firstly your entire work will be done by the depositer, if you are depositing an amount, then only other person will come and get his/her work done, once you're done. thats all about nonpreemptive because, here the process will execute until its totally executed. hope u understood

  • @greythirdeye1714
    @greythirdeye1714 4 роки тому +1

    💙

  • @anjalipatel5643
    @anjalipatel5643 Рік тому

    This question is premptive or non premptive

  • @priyacharaya5808
    @priyacharaya5808 5 років тому +7

    sir can u just put videos from syllabus fast as we have exams to give!!

  • @HemanthHR-fi5rq
    @HemanthHR-fi5rq 4 роки тому +1

    Some one please reply me, what if the table has an another coloumn named priority? Which process need to taken first?

    • @phungdao9184
      @phungdao9184 4 роки тому

      this is FCFS, which process come to ready queue first will be executed first so priority has nothing to with this scenario

  • @skygaming8416
    @skygaming8416 День тому

    I have my exam in 30 min

  • @SorcererSupreme73
    @SorcererSupreme73 Рік тому

    Gantt chart

  • @jatingarg1897
    @jatingarg1897 3 роки тому

    Why dont you complete the whole subject?

    • @nesoacademy
      @nesoacademy  3 роки тому

      We have already completed it as per the GATE syllabus. Please install our Android app to access the complete course.

  • @tirusewchekol5430
    @tirusewchekol5430 2 роки тому

    your video is error waiting time =start time-arrival time

  • @m_miko
    @m_miko 2 роки тому

    Great video but the video is too long you repeat same thing over and over again.

  • @davidg3594
    @davidg3594 Рік тому

    Nope!

  • @primordialcat6986
    @primordialcat6986 Рік тому +2

    u don't get the idle time

  • @lionsgamer7808
    @lionsgamer7808 11 місяців тому

    Bhai Hindi mein padhya kr

  • @xxyyww8404
    @xxyyww8404 6 місяців тому

    thank you so much

  • @lamhoangviet3708
    @lamhoangviet3708 2 роки тому

    Thank you!

  • @deepakmandal161
    @deepakmandal161 Рік тому

    Thank you