First Come First Served Scheduling (Solved Problem 1)

แชร์
ฝัง
  • เผยแพร่เมื่อ 4 ก.พ. 2025

ความคิดเห็น • 146

  • @ajaylathwal3758
    @ajaylathwal3758 3 ปีที่แล้ว +6

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

  • @yuvrajsingh5487
    @yuvrajsingh5487 11 หลายเดือนก่อน +5

    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 ปีที่แล้ว +24

    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 ❤

  • @KusurSiddaram
    @KusurSiddaram 3 ปีที่แล้ว

    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

  • @johnvincentaligarbes6191
    @johnvincentaligarbes6191 ปีที่แล้ว +4

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

  • @vivienchristy127
    @vivienchristy127 4 ปีที่แล้ว +15

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

  • @rabeakhatoon1284
    @rabeakhatoon1284 11 หลายเดือนก่อน

    Amazing video it cleared all my doubts😊

  • @priyankasr978
    @priyankasr978 3 ปีที่แล้ว +3

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

  • @thali4-c7j
    @thali4-c7j ปีที่แล้ว +1

    thank youuuuuu, it helps me to understand a lot.

  • @devangseksaria4888
    @devangseksaria4888 2 ปีที่แล้ว

    thanks a lot neso academy for providing such easy explanations

  • @cobi617
    @cobi617 5 ปีที่แล้ว +17

    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.

  • @yokesht5858
    @yokesht5858 5 ปีที่แล้ว +1

    Nice sir in your teaching is good i am easily understand

  • @MuhindoMoris2003
    @MuhindoMoris2003 3 หลายเดือนก่อน

    perfect and precise... thank you sir

  • @jablaklandry2854
    @jablaklandry2854 3 ปีที่แล้ว +1

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

  • @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 .

  • @sharonchepkemoi1300
    @sharonchepkemoi1300 7 หลายเดือนก่อน

    Very educative❤❤❤

  • @gavin8535
    @gavin8535 4 ปีที่แล้ว +109

    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.

  • @sparkmedia_ID
    @sparkmedia_ID 3 ปีที่แล้ว

    so best ever learning video FCFS

  • @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....

  • @vbalaji3267
    @vbalaji3267 ปีที่แล้ว

    usefull video sir thank you very much❤

  • @SiDNarsale
    @SiDNarsale 4 ปีที่แล้ว +1

    very nice explanation sirji!

  • @kbhargavi4400
    @kbhargavi4400 4 ปีที่แล้ว +3

    Awesome content!!🔥🔥

  • @monetka79
    @monetka79 4 ปีที่แล้ว +2

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

  • @ayushiydvKG
    @ayushiydvKG 8 หลายเดือนก่อน

    yes, clear. thanks a lot! ❤

  • @eagle_shadow6665
    @eagle_shadow6665 2 ปีที่แล้ว +1

    Nice thanks for this video

  • @samnguyen-nhp
    @samnguyen-nhp 10 หลายเดือนก่อน

    great lesson

  • @najibtackie5148
    @najibtackie5148 2 ปีที่แล้ว +1

    Sooo grateful!
    Thanks a lot!!!

  • @Paddy_King_Uganda
    @Paddy_King_Uganda 2 ปีที่แล้ว

    Thank you 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 4 ปีที่แล้ว +2

      i have the same thought

    • @rishabmudliar1058
      @rishabmudliar1058 4 ปีที่แล้ว +1

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

    • @akkir6707
      @akkir6707 4 ปีที่แล้ว +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 4 ปีที่แล้ว +2

      @@akkir6707 that could be for sjf ig

    • @rishabmudliar1058
      @rishabmudliar1058 4 ปีที่แล้ว +1

      @@akkir6707 for fcfs we go this way

  • @ewnetut6574
    @ewnetut6574 ปีที่แล้ว

    One of the best

  • @TuanNguyen-rx1vf
    @TuanNguyen-rx1vf 4 ปีที่แล้ว +1

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

  • @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.

  • @LifeEducationBD
    @LifeEducationBD 3 ปีที่แล้ว

    Thank you very much sir

  • @cyberizer
    @cyberizer 4 หลายเดือนก่อน

    thank you so much!

  • @raunaknarayan4092
    @raunaknarayan4092 3 ปีที่แล้ว

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

  • @leofrancisamador2658
    @leofrancisamador2658 4 ปีที่แล้ว +2

    this is so helpful

  • @lydiatandekanga4287
    @lydiatandekanga4287 8 หลายเดือนก่อน

    Clear explained

  • @micaellachiquillo1890
    @micaellachiquillo1890 4 ปีที่แล้ว +1

    Thank You So Much😊

  • @ÎNFOxTUBE
    @ÎNFOxTUBE 3 ปีที่แล้ว

    Thank you so much for help Sir.

  • @HarunFarah
    @HarunFarah 2 ปีที่แล้ว

    great video well explained thank you

  • @gatecomputerscience1484
    @gatecomputerscience1484 3 ปีที่แล้ว +1

    Simply awesome

  • @johntonidovlog999
    @johntonidovlog999 4 ปีที่แล้ว +1

    Thank you so much

  • @mokera3801
    @mokera3801 5 ปีที่แล้ว +2

    Thank you sooooooooooo much

  • @joanitarzzalwango6392
    @joanitarzzalwango6392 2 ปีที่แล้ว

    Thank you sir

  • @AhmadAli-xe9sl
    @AhmadAli-xe9sl 3 ปีที่แล้ว

    Plz share video about deadlock avoidence

  • @EuniceAjayi-je2ve
    @EuniceAjayi-je2ve ปีที่แล้ว

    Great one.

  • @lukaeric3479
    @lukaeric3479 ปีที่แล้ว +2

    What about RT (Response Time)?

  • @VoiceOfBasumatary
    @VoiceOfBasumatary ปีที่แล้ว +2

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

    • @ayushiydvKG
      @ayushiydvKG 8 หลายเดือนก่อน

      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

  • @anithajhansi6589
    @anithajhansi6589 4 ปีที่แล้ว

    Thank you

  • @dhanushsivajaya1356
    @dhanushsivajaya1356 4 ปีที่แล้ว +1

    Thankyou sir

  • @anuhp3769
    @anuhp3769 4 ปีที่แล้ว

    Great video

  • @ITCOMEANDHEREIAM
    @ITCOMEANDHEREIAM 3 หลายเดือนก่อน

    is this a type of preemptive on fcfs?

  • @sudiptacoachingcentre4118
    @sudiptacoachingcentre4118 4 ปีที่แล้ว

    Very helpful

  • @mykun8737
    @mykun8737 2 ปีที่แล้ว

    thanks

  • @santhipriyapriya9828
    @santhipriyapriya9828 3 ปีที่แล้ว

    Thank you...

  • @suhasuvgowda3416
    @suhasuvgowda3416 2 ปีที่แล้ว

    Tq sir to explain this

  • @kongaraniappalasrinivasrao550
    @kongaraniappalasrinivasrao550 10 หลายเดือนก่อน

    Thanking you sir

  • @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😇

  • @hariprasad7960
    @hariprasad7960 9 หลายเดือนก่อน +1

    Sir possible of getting -ve in waiting time

  • @OduroChristian
    @OduroChristian 11 หลายเดือนก่อน

    God bless you

  • @joanitarzzalwango6392
    @joanitarzzalwango6392 2 ปีที่แล้ว +7

    Tomorrow is my exam

  • @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.

  • @knightcool7769
    @knightcool7769 9 หลายเดือนก่อน +1

    How do you calculate throughput

    • @retroelx3014
      @retroelx3014 5 หลายเดือนก่อน +1

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

  • @anjalipatel5643
    @anjalipatel5643 ปีที่แล้ว

    This question is premptive or non premptive

  • @JbMuisha
    @JbMuisha ปีที่แล้ว

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

  • @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.

  • @vnnieleee
    @vnnieleee 3 ปีที่แล้ว +1

    Is this non preemptive or preemptive?

  • @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

  • @akkir6707
    @akkir6707 4 ปีที่แล้ว +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}

  • @caster7376
    @caster7376 2 ปีที่แล้ว +1

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

    • @retroelx3014
      @retroelx3014 5 หลายเดือนก่อน

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

    • @caster7376
      @caster7376 5 หลายเดือนก่อน +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

  • @deeksham1439
    @deeksham1439 ปีที่แล้ว +1

    Is this preemptive or non preemptive

    • @ayushiydvKG
      @ayushiydvKG 8 หลายเดือนก่อน

      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

  • @matiullah3058
    @matiullah3058 9 หลายเดือนก่อน +1

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

  • @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 .

  • @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

  • @prachikumari5574
    @prachikumari5574 2 ปีที่แล้ว

    Best ❤️

  • @khushitripura3633
    @khushitripura3633 4 ปีที่แล้ว +6

    I'm still confused

  • @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 ...)

  • @criminalcoder6307
    @criminalcoder6307 3 ปีที่แล้ว

    Avg waiting time = 5.4 units

  • @rahuljangir7100
    @rahuljangir7100 3 ปีที่แล้ว +6

    2:18 🤣🤣🤣🤣🤣🤣

  • @priyacharaya5808
    @priyacharaya5808 5 ปีที่แล้ว +7

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

    • @bhavinsheth
      @bhavinsheth 2 ปีที่แล้ว

      Bro they too have to earn

  • @halidmustefa8175
    @halidmustefa8175 3 ปีที่แล้ว

    nice

  • @tushar090
    @tushar090 2 ปีที่แล้ว

    Thanky🐵u

  • @000-l1c3l
    @000-l1c3l ปีที่แล้ว +1

    2:09

  • @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.

  • @nebiyatgeteya3920
    @nebiyatgeteya3920 ปีที่แล้ว

    ❤❤❤❤❤

  • @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

  • @tirusewchekol5430
    @tirusewchekol5430 2 ปีที่แล้ว

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

  • @skygaming8416
    @skygaming8416 หลายเดือนก่อน

    I have my exam in 30 min

  • @songslyrics7912
    @songslyrics7912 4 ปีที่แล้ว

    appreciate to u

  • @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

  • @SorcererSupreme73
    @SorcererSupreme73 2 ปีที่แล้ว

    Gantt chart

  • @greythirdeye1714
    @greythirdeye1714 4 ปีที่แล้ว +1

    💙

  • @lionsgamer7808
    @lionsgamer7808 ปีที่แล้ว

    Bhai Hindi mein padhya kr

  • @deepakmandal161
    @deepakmandal161 ปีที่แล้ว

    Thank you

  • @xxyyww8404
    @xxyyww8404 7 หลายเดือนก่อน

    thank you so much

  • @lamhoangviet3708
    @lamhoangviet3708 2 ปีที่แล้ว

    Thank you!