First Come First Served Scheduling (Solved Problem 1)

แชร์
ฝัง
  • เผยแพร่เมื่อ 3 ธ.ค. 2024

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

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

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

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

    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

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

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

  • @johnvincentaligarbes6191
    @johnvincentaligarbes6191 11 หลายเดือนก่อน +4

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

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

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

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

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

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

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

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

    • @ShubhamKumar-of1vq
      @ShubhamKumar-of1vq 2 ปีที่แล้ว +6

      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.

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

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

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

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

    thank youuuuuu, it helps me to understand a lot.

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

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

    Nice sir in your teaching is good i am easily understand

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

    Amazing video it cleared all my doubts😊

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

    perfect and precise... thank you sir

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

    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

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

    very nice explanation sirji!

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

    so best ever learning video FCFS

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

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

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

    Sooo grateful!
    Thanks a lot!!!

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

    Awesome content!!🔥🔥

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

    Thank you so much for help Sir.

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

    Very educative❤❤❤

  • @TuanNguyen-rx1vf
    @TuanNguyen-rx1vf 3 ปีที่แล้ว +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.

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

    yes, clear. thanks a lot! ❤

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

    great lesson

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

    great video well explained thank you

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

    What about RT (Response Time)?

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

    usefull video sir thank you very much❤

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

    Plz share video about deadlock avoidence

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

    this is so helpful

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

    Clear explained

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

    Thank you very much sir

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

    Thank You So Much😊

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

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

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

    Nice thanks for this video

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

    One of the best

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

    thank you so much!

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

    Simply awesome

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

    Thank you sooooooooooo much

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

    Thank you sir

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

    Thankyou sir

  • @VoiceOfBasumatary
    @VoiceOfBasumatary 11 หลายเดือนก่อน +2

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

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

      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

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

    Thank you so much

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

    Thank you

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

    Thank you sir❤❤❤✊✊✊

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

    thanks

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

    Sir possible of getting -ve in waiting time

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

    Thank you...

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

    God bless you

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

    Tq sir to explain this

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

    Great one.

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

    Thanking you sir

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

    I'm still confused

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

    Very helpful

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

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

    Avg waiting time = 5.4 units

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

    Great video

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

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

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

    How do you calculate throughput

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

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

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

    is this a type of preemptive on fcfs?

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

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

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

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

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

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

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

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

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

    Tomorrow is my exam

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

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

    This question is premptive or non premptive

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

    Is this non preemptive or preemptive?

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

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

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

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

    Is this preemptive or non preemptive

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

      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

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

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

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

    2:09

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

    Best ❤️

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

    nice

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

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

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

    2:18 🤣🤣🤣🤣🤣🤣

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

    Thanky🐵u

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

    appreciate to u

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

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

    Gantt chart

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

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

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

    Nope!

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

    ❤❤❤❤❤

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

    u don't get the idle time

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

    💙

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

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

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

    Bhai Hindi mein padhya kr

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

    Thank you

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

    thank you so much

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

    Thank you!

  • @Brindavanam...
    @Brindavanam... 9 หลายเดือนก่อน

    Thank you....