Lec 17: Preemptive Priority Scheduling Algorithm in OS with example | Operating System

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

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

  • @angadtewari6018
    @angadtewari6018 3 года назад +116

    Thank you Jenny ma'am , I am watching this a day before my exam and you are explaining this in such an effortless manner making everything so much fun to learn

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

      Pin this Jenny ma'am if you love your fans.

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

      She is exceptional

    • @Awakened_Pot
      @Awakened_Pot 4 месяца назад

      @@mohdusaid6534 Lmaooo be her student not her fan

    • @Fabulousfilmmakers-s6c
      @Fabulousfilmmakers-s6c Месяц назад

      See,she is an instructor and teacher,looking in good way is correct...!

  • @rakshithaj1696
    @rakshithaj1696 3 года назад +63

    Love and respect from karnataka!! ❤✨

  • @soumyadipdeb2084
    @soumyadipdeb2084 7 месяцев назад +3

    such a explanation needs to be highlighted for years.perhaps the best ever explanation available on youtube

  • @JennyslecturesCSIT
    @JennyslecturesCSIT  5 лет назад +107

    The main drawback of Priority Scheduling is "Starvation"

    • @gatecomputerscience1484
      @gatecomputerscience1484 5 лет назад +3

      Jenny's lectures CS/IT NET&JRF , right

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

      @Jenny's lectures CS/IT NET&JRF Ma'am please clarify my doubt that if arrival time of any two process is same how to solve that....please clarify this ma'am

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

      @@shilpashreeha5798 we have to give priority for order in which we have written the process.. I. E if P1 and P4 having same A. T we have to give priority for P1 only

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

      Same Priority, Same Arrival Time. Which one should be considered? Earliest process ID or smallest burst time ?

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

      @@bense_tony process id

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

    Thank you ma'am for your guidance. I have been following your video lectures for DBMS , DSA and OS for the past two months. The video lectures helped me, an ECE student, to grasp the concepts. And the video lectures helped me in securing a job in Persistent Systems.

  • @codelord9031
    @codelord9031 3 года назад +14

    I swear this lady has saved my life in more ways that I can say

  • @preathi5436
    @preathi5436 2 года назад +6

    Thank you from tamilnadu ❤️ after my 1 hour lectures in college I am still confused about this algorithm but you make me clear in one shot ✨

  • @Dattebayo._.
    @Dattebayo._. 4 года назад +7

    Thank you mam😊😊..For helping me to get good grade in DSA and now for clearing the concepts of OS also..

  • @edwardgarcia9369
    @edwardgarcia9369 3 года назад +6

    Well explained Ma'am, big thanks to you, looking forward for more videos like this, especially in these days where pandemic is still present, just like me, a student who is struggling on online classes. Thank you very much Ma'am.

  • @saadmanahmed860
    @saadmanahmed860 4 года назад +4

    tomorrow has got my final exam. Today you helped me ma'am. You are ingenious

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

    Thank you Ma'am for explaining it so clearly, you explained it better than my so-called professor

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

    Me gusta tu canal soy Boliviano y aprendo inglés 🇧🇴♥️♥️♥️😁

  • @The_Untuned_Life
    @The_Untuned_Life 4 года назад +223

    At the first glance, it looked like she have had a short pixie haircut

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

    Thanks for ur help mam u r great teacher god bless u i have exam at computing course at engineering faculty ASU and ur lessons helped me a lot thx.

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

    your finishig smile takes the inerest to next level ma'am

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

    This lady is not just smart but very pretty! I passed my exam thanks to your lectures! Both non preemptive and preemptive videos were great! best wishes

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

    Too confusing question of preemptive but you understand in a very simple way. Thanks a lot ma'am.🙏

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

    You just made my exam preparation very easy now m expecting A grade in OS🤩

  • @RimasAhamad-yf3te
    @RimasAhamad-yf3te 2 месяца назад

    our lectures are teach this algorithm is very very hard but you are explain very very easy method .THANK YOU MISS

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

    Beauty with brain ,thank you so much mam ❤

  • @World-of-programming.
    @World-of-programming. Год назад

    Watch the video during class and answer the questions😂 ,you are the best ,no captionnn🔥

  • @huyvole9724
    @huyvole9724 5 лет назад +5

    On RUclips
    Pre-empt, P2 > P1 (Priority) => choose P2
    Non pre-empt: P2 > P1(Priority) => choose P1

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

    Mam thank you so much for teaching us on youtube really appreciate your efforts,techniques mam.God bless you mam.

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

    Thanks you. Before I was struggle to solve preemptive problems but after seeing this video I understood how to solve this.

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

    HI mam i am from Ethiopia thanks for Explanations God bless you thanks

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

    Its really happy to say that im clear in many topic due to ur videos....thanks for providing it🤗

  • @ameerdanladi2203
    @ameerdanladi2203 9 месяцев назад

    Very interesting, watched your clip from Nigeria.

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

    So nice of you I will impress with you your teaching mathod is so good

  • @mohamedGasmi
    @mohamedGasmi 5 лет назад +6

    You are the best thank you from Algeria !!

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

    Thank you ma'am. The video was just amazing .Everything went inside 💖.

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

    Thank You Mam, all my doubts are cleared primitive and non primitive concept this happened only after watching your videos only once again thank you so much mam

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

    Thank you ma'am! My final exam is tommorow and i learned a lot from you and your video lecture!

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

    💯 understanding superb explaind we r lucky to have u mam

  • @sharmisthachakraborty256
    @sharmisthachakraborty256 5 лет назад +2

    Thank u maam
    U made it more easier to understand

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

    Thankyou mam for your wonderful explanation I learnt os only your lectures

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

    30 mins for OS exams 🎉

  • @ejaradiro3147
    @ejaradiro3147 5 лет назад +1

    i love your lecture and you your self jenny's uuumphaa long live for you

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

    Thank you very much jenny mam i love your teaching ❤

  • @hVohra-hl1rd
    @hVohra-hl1rd 3 года назад

    Very informative and educational video... Thanks for sharing.. keep sharing 👍

  • @TinuMon-v6u
    @TinuMon-v6u Год назад +1

    //Primitive-priority scheduling algorithm implementation using c program
    #include
    #include
    int jtime = 0;
    int counter;
    int n;
    int at[20], bt[20], ct[20], pt[20], sts[20];
    void process_Ps()
    {
    int index = -1; // variable for storing the index of the process with the highest priority
    int highestPriority = INT_MAX; // set the highest priority to the maximum possible value
    // Check all incomplete processes
    for (int i = 0; i < n; i++)
    {
    if (at[i] 0)
    {
    bt[index]--;
    jtime++;
    }
    // If the process is completed
    if (bt[index] == 0)
    {
    ct[index] = jtime;
    sts[index] = 1; // Set the status to completed
    counter--; // Decrement the counter since one process is completed
    }
    }
    else //if an index not gets
    {
    jtime++; // Increment jtime if no process is available at the current time
    }
    }
    // Main Function
    int main()
    {
    // Reading the number of processes
    printf("Enter the number of processes: ");
    scanf("%d", &n);
    counter = n; // Setting the counter to n
    // Reading process details from the user
    for (int i = 0; i < n; i++)
    {
    printf("Process %d:
    ", i + 1);
    printf("Arrival time: ");
    scanf("%d", &at[i]);
    printf("Burst time: ");
    scanf("%d", &bt[i]);
    printf("Priority: ");
    scanf("%d", &pt[i]);
    sts[i] = 0; // Setting the status of the process to incomplete
    ct[i] = 0; // Setting the completion time to zero at the beginning
    }
    // Printing the given details
    printf("Given details:
    ");
    printf("AT BT PT
    ");
    for (int i = 0; i < n; i++)
    {
    printf("%d %d %d
    ", at[i], bt[i], pt[i]);
    }
    // Perform process_Ps() function until the counter becomes zero, indicating that all processes are completed
    while (counter != 0)
    {
    process_Ps();
    }
    // Display the results
    printf("
    Results:
    ");
    printf("AT BT PT CT
    ");
    for (int i = 0; i < n; i++)
    {
    printf("%d %d %d %d
    ", at[i], bt[i], pt[i], ct[i]);
    }
    return 0;
    }

  • @rajatshriguru4376
    @rajatshriguru4376 5 лет назад +2

    I totally understand this concept now !!! Thanks ma'am !!

  • @jhussain6460
    @jhussain6460 5 лет назад +6

    hello mam, how we can use this preemptive version for research per-pus? for example there are n jobs and n machines
    thanks

  • @fake.reb129
    @fake.reb129 5 лет назад +1

    is this the long method of preemptive? i saw a lot of video about this topic and yours is different. but i got this more clearer than anyone.

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

    Really well explained, kudos.

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

    Thank you Ma'am ❤️
    Your explanation is so good that I understood it so much 😊.

  • @rahmatullahnaveed2772
    @rahmatullahnaveed2772 5 лет назад +1

    Your teaching is also same like eyes, because your eyes are sweet.
    I got it, thanks dear.

  • @HabtamuTeshome-jp3oe
    @HabtamuTeshome-jp3oe 2 года назад +1

    you are my best

  • @Fabulousfilmmakers-s6c
    @Fabulousfilmmakers-s6c Месяц назад +1

    What is the need,why we have to learn scheduling algorithm in which place it will be useful for career...?

    • @ankur9497
      @ankur9497 Месяц назад

      There isnt any use, that's why colleges teach it

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

    Good job professor👏

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

    you are amazing ma'am💗💗

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

    Very clear Explanation

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

    💥💥💥great explanation

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

    Maam your way of teaching is very easy and language is simple to understand for any student...
    Thanks maam for this great explanation..

  • @kEzO9O
    @kEzO9O 5 лет назад +3

    thanks! your amazing, I undestand it very well!

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

    Its really helpful ,But please make shorter version of this same topic .. It will be very helpfull to see before exams as a quick revision

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

    Well explained
    Thank you ma'am

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

    Thanks,, Explained very well!👍👌

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

    Helpful Thank you ma'm ❤️

  • @IjazAhmad-wv9qx
    @IjazAhmad-wv9qx 2 года назад +1

    Mam, response time and waiting time is different in preemptive scheduling.
    Because response time is the time when first time CPU allocate to a process.
    Please check this.

  • @wonderland238
    @wonderland238 Год назад +2

    Ktu studentss 👍🏻👍🏻

  • @ashenafimolla6269
    @ashenafimolla6269 5 лет назад +1

    very good lecture thank you

  • @simransimran6766
    @simransimran6766 5 лет назад +2

    best lecture

  • @p.rajeswari9184
    @p.rajeswari9184 5 лет назад +1

    Mam, I'm preparing for the net exam.so ur lecturer is very very useful for us.pls pls continue.then can u please suggest the best book that covers all subjects of the net exam for last-minute study?because we have 40 days only.

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

    In case of higher no higher priority, to solve starvation problem, the priority no of that waiting process after some time interval will be increased or decreased? And the time interval for every processes which are in waiting state will be same or not? PLZZZ REPLY

  • @aiswaryanp7761
    @aiswaryanp7761 5 лет назад

    Thnku for giving such a great explanation.....

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

    very good, help me prepare my test!

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

    Thanks mam nice lecture 🙂

  • @vinuthareddy1552
    @vinuthareddy1552 5 лет назад +1

    Nice teaching

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

    شكرا جزيلا ☺️

  • @nikhilteja9944
    @nikhilteja9944 4 месяца назад

    watching this video in 2024. night before my exam but no worries because the teacher is jenny mam 😊🥰

  • @suryanani5179
    @suryanani5179 5 лет назад +1

    How you have taken arrival time in this case and is it possible to program arrival time in operating system can you please explain?

  • @HarpreetSingh-qe4oc
    @HarpreetSingh-qe4oc 2 года назад

    well explained. thanks

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

    Thanks ma'am I like your lesson
    I think you used to upload
    The new lessan

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

    Great mam

  • @VenkateshVenkatesh-ue7nl
    @VenkateshVenkatesh-ue7nl Год назад

    Thank you so much mam ❤...

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

    Mam can you please make video on parsers from compiler construction!your way of teaching is very nice

  • @SangitaThakur-be7oy
    @SangitaThakur-be7oy 7 месяцев назад

    NICE EXPLANATION..
    Theres a mistake in remaing time for P5 it would be 11-5=6

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

      @@SangitaThakur-be7oy If you are telling about response time(RT)
      Then the first time P5 arrived was at 5 units of time and AT is also 5
      So it will be 5-5=0

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

    Mam! What happened here if the B.T of p5 process is 4?

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

    RUclips crush 😍😍😍😍

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

    Pursuing btech in mechanical, I'm here just bcoz its u mam

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

    Thank you ma'am

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

    Nice work maim

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

    do we only check the priority of previous process or the all processes which are in the ready queue in preemptive priority scheduling plsss reply

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

    Last process that is p7 has highest priority but in case if was no higher priority than others in ready queue, will it completely scheduled? Or only for one ms??

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

    Thank you so much mam

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

    What if the version is not mentioned in question that is preemptive or non preemptive??

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

    If the BT of P5 is changed to 4...then what is need to be done?? The CPU will remain at waiting state till 10nth unit of time??

  • @JaileceAbel-yp8hp
    @JaileceAbel-yp8hp 8 месяцев назад

    Understood 🙏🙏🙏🙏🙏🙏

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

    American Student: I learnt nothing at lecture
    Indian Tutorial: I got you.

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

    Mam what to do when the arrival time is zero for all processes

  • @vishalchauhan9832
    @vishalchauhan9832 5 лет назад +1

    Hi mam. Can we apply priority on fcfs?? If arrival time of every process is zero??? In our exam process burst time and priority of each process was given. Arrival time of each process waas zero... In the question it was asked to solve the problem through fcfs, SJF, round robin..... Initially i thought priority is given just to confuse us .. Then I realized that if arrival time of every process is zero how we can consider any of the given process as first process?? On paper we have to write any process first. But practically who comes first?? Every one comes at same time.. Beacuse arrival time is 0...
    Now in such case we have to choose by default first written process as first process. But but,mam there was also a coloumn of priority then I think we have to decide first process on the basis of priority... And I applied priority in fcfs. Mam my approach is right or wrong.????

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

    Should we repeat the exercise fr each one?
    Like 10 times 1 exercise

  • @deleonivhanpatrickd.1312
    @deleonivhanpatrickd.1312 4 года назад

    Thanks i understand very well but what pls make a tutorial where the priority is higher when the number is higher thanks

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

    Mam when 0 in priority

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

    Mam please reply if highest priority come in p1 then what should we do .....

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

    Thank You Mam!

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

    mam, if arrival time is not given then what should we have to check ??

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

    thankyou so much maam !

  • @LearnWithBiraj
    @LearnWithBiraj 5 лет назад +8

    Your lecture is solution of my problem But
    Your pretty face is problem of my sleep!

  • @itsyourmathstotour-xb6rk
    @itsyourmathstotour-xb6rk 4 месяца назад +1

    life saver