Non Preemptive Priority Scheduling Algorithm with example | Operating System

Поделиться
HTML-код
  • Опубликовано: 31 янв 2025
  • Learn some important basic points of a Priority scheduling algorithm and Non-preemptive Priority Scheduling with solved examples.
    See Complete Playlists:
    Placement Series: • Placements Series
    Data Structures and Algorithms: https: • Data Structures and Al...
    Dynamic Programming: • Dynamic Programming
    Operating Systems: // • Operating Systems
    DBMS: • DBMS (Database Managem...
    Connect & Contact Me:
    Facebook: / jennys-lectures-csit-n...
    Quora: www.quora.com/...
    Instagram: / jayantikhatrilamba

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

  • @amanat_aly
    @amanat_aly 4 года назад +79

    During Lockdown all teachers are just trying to complete the syllabus in online lectures and class is hell but you teach us with the core of your heart
    hats of madam

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

    I totally understand this topic now. I am having my exams from 27 may . this will definitely gonna help me with that ❤

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

      How was ur exam bro

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

      @@vishnunair3565 broo it was 4 years agoo!!☠️

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

      @@vishnunair3565 its almost 4 years

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

      I know him,he’s honestly one of the smartest and most successful people I know. It’s amazing how his mind works. He can take on the toughest challenges, break them down effortlessly, and come up with solutions that are both creative and practical. Every time I talk to him, I’m blown away by how much he knows and how quickly he picks things up.
      But it’s not just about his intelligence. Rajat's success is a testament to his hard work and dedication. No matter how tough things get, he stays focused and driven, always pushing through and making things happen. Honestly, it’s super inspiring to see someone who not only achieves so much but does it with so much passion and determination..
      See the last part Go down.
      .
      .
      .
      .
      .
      ..
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      ..
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      ..
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      ..
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      ..
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      ..
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      ..
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      ..
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      ..
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      ..
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      ..
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      ..
      .
      .
      .
      .
      .
      .
      .
      Just Kidding Guys
      😂😂

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

      @@vishnunair3565 Fail

  • @swaspoohelpinghand7018
    @swaspoohelpinghand7018 10 месяцев назад +5

    Thank you so much mam. Tomorrow is my external exam and u made me to understand this concept in few minutes. Thank you so much 🙏🏻❤

  • @suryakantsingh6307
    @suryakantsingh6307 2 года назад +9

    Really... This is the best video till now I get for Priority Scheduling ✨

  • @nafisnawalnahiyan5032
    @nafisnawalnahiyan5032 4 года назад +8

    A true teacher! I wish you were my OS teacher! Loads of love from Bangladesh!

  • @ezkill5361
    @ezkill5361 3 года назад +10

    i love your version of teaching, it is so relaxed and simple and everything that i am questioning in my mind is being answered as if you were reading my mind!
    BUT i suggest you put in subtitles so that everyone in the world would learn more

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

    Oh God 🙏 Thank you so much I literally followed multiple channels on OS for cpu scheduling but all are very confusing and finally I thought Jenny mam has also uploaded let's check it once
    Ohh Thanks mam Life saver 🙏
    Varna mujhe to laga tha os ka ye topic skip kar deta hu

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

    Thank you so much for this informative video tomorrow is my paper and I am preparing on this first time the whole semester and I completely understand this topic ❤

  • @gopavaramsaimadhuree520
    @gopavaramsaimadhuree520 3 года назад +17

    Superb teacher. I am able to understand everything clearly

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

    Solutions with a touch of extra background detail is what I like about your teaching. Thanks for educating us. I really appreciate the help your videos did to me during my exams.

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

    I guess no know can teach me like you in CS , I have learned a lot of things from you mam in many subjects of CS . I wish I could have learned from you as my teacher in real life ❤. Love you mam and thanks a lot

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

    I really appreciate how you bring out the content for easy understanding. Thank you so much

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

    Thanks for simplifying concepts madam(from NEPAL).

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

    this really helped me understand it better 🥰. Gonna have my exams probably next week 😬😬

  • @PingpongPoof-c3r
    @PingpongPoof-c3r 8 месяцев назад +1

    thanks mam , its good to have people like you on yt]

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

    Thank you so much dear tomorrow l have exam and you help me ❤❤❤
    لا اله الا انت سبحانك اني كنت من الظالمين ❤❤

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

    U explained it in a simple way . I can easily understand the topic

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

    Much love from kerala🌝♥️

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

    I have exam 2day your lecture was very helpful

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

    It was really good, I understood the topic in one shot

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

    very good teacher thanks

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

    Thanks tomorrow is my exam it helps a lot 😊

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

    God bless you madam,excellent job,looking forward to more such videos,I appreciate your efforts

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

    Thanks for simplifying concepts madam.

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

    Mam i gonna fall in love with u r subject❤️ knowledge 😉

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

    very helpful and easy to understand (from Pakistan)

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

    Thanks for this channel I learn a lot .. THANK YOUuuuuuuuuuuuu from philippines

  • @MuhammadJawadMusic
    @MuhammadJawadMusic 3 года назад +3

    Thank You for this lecture! Very helpful.

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

    These lecture is very helpful ma'am

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

    thank you very much mam, great help for my c++ program

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

    Thank u for this, best content 💛 from Philippines :)

  • @نافذابوكشك
    @نافذابوكشك Месяц назад

    Thanks alot ❤❤❤❤
    شكرا

  • @SumitSharma-ko7zq
    @SumitSharma-ko7zq 2 года назад

    Mam aapki English bahut achchi hai

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

    You are the goat ❤

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

    Meeru chala Baga cheputhunaru aunty

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

    Excellent mam❤

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

    I like ur teaching 👌

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

    Easy to understand👌

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

    Mam, please make videoes on implementation of FCFS, SJF ,SRTS and RRA in c programming language ....there are so many videos on these topic but they code in computer directly , it is difficult to understand. . your implementation of stack, queue etc are well explained on board so mam please make videoes

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

    Very helpful
    Thanks💜

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

    Mam,consider if priority is same for 2 processes and arrival time is 0 or same for both then should we check brust time ( less brust time first) or the process id.

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

    maam apke lectures pe concentrate nhi ho paata reason everyone knows.

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

    Thank you so much ma'am.

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

    Well Explained! Thank you!

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

    Arrival time of process A = 0, B = 0 and Priority of A = 5 ,B = 2 Which one would come first ( lesser the number higher the priority)
    Please do respond.. I can't move further without getting it clarified 😀
    Whether it follows order of writing the processes or the process with highest priority will come first ????
    Nice video btw ❤️

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

      @Roopa 2nd gets processed since lesser no.high priority.

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

      Here priority matters because arrival time is same

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

    Very helpful 💙💙

  • @Rolex-r1s
    @Rolex-r1s 10 месяцев назад +1

    I'm having a doubt from when i started to watch ur video lectures!
    That is: Are you and Genelia Deshmukh sisters....!? You both look identical 🤔🤔🤔🧐

  • @sriff1
    @sriff1 9 месяцев назад +1

    Mam i have semester exam tomorrow please clarify my doubt:
    What if only process names,Bursttime,arrival time only given and asked to find Waiting and Turn around time using Priority scheduling ?? By default what to Do mam like can we assign priority randomly ?
    AND MAM if premptive or non premptive is given for priority scheduling by default what we should do pre emptive or NON ??

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

    How will we chose p5 in Gantt chart after p1 Bcz priority of p6>p5
    6>2
    I have done it as follows :
    P1 p6 p4 p2 p3 p5 p7
    P1(0-8) p6(8-13) p4(13-14)p2(14-16) p3(16-22) p5(22-28) p7 (28-29)
    Kindly reply if iam wrong

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

      Arrival time can never be same brother

  • @vk-music22
    @vk-music22 Год назад +2

    after p7 question is solved wrong mam took the statement opposite after p7 she took higher the number ,heigher the priority

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

    Nice explanation

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

    Nice Bro!!😎

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

    Nice video mam

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

    well explained...thanks

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

    Thank you mam for the best content.please don't tell about mam's external attributes. Praise mam's subject content. It will be a great reward for mam.

  • @rashennavodya9379
    @rashennavodya9379 11 месяцев назад

    Thank you very much.

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

    Thank's😘

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

    nicely explained. 😍

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

    thank you very much and keep up the good work. but ' again we don't understand how to do the preemptive please explain??///

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

    very helpful

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

    i love you professor

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

    Can you explain higher the number higher priority

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

    Mam this is maniroyal I love u 💕

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

    Thanks mam❤

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

    Hii...Mam nicely explained...Can u take classes??

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

      She is already giving lecture why u want classes?

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

      @@mallikarjunhagargi7830 why u talking... I asked mam... So u not answering me.

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

      @@vaibhavbhamare8147 okay then wait for madam reply they will definitely give reply

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

      Still waiting for reply....

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

    Mam, pls conduct mock test in all subject

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

    thank you miss

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

    Thank you mam

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

    thanks ma'am

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

    very helpful video

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

    Great job ....
    Clear explanation.....super 👏 mam
    But only one problem mam ur eyes were disturbing me mam

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

    Priority of P6 is far more greater than P5 on the table , why P5 is taken into consideration earlier than P6 ( for your kind information 6 > 5 if the entire scenario is run on the basis of the availability of processes along with their respective priorities)

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

      bro read the instructions carefully, it says lesser the number higher the priority and for your kind information 5

  • @mr_complicated.3792
    @mr_complicated.3792 Год назад

    i dont understand this topic because its so difficult understanding still is so easy.

  • @praveensilliger4207
    @praveensilliger4207 5 месяцев назад +1

    P2 ARRIVAL TIME IS 1 and allocation time is 14 and RT is 13 but u are telling allocation time 15 😊

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

      @@praveensilliger4207 aladichav ga

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

    What If arrival time is not given?

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

    U are angel😍

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

    Mam they will mention aravial time in question?

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

    Love u mam❤❤😻😻💌💌

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

    By the way. you look like Maniha Koirala: You also become my favourite.

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

    Are these lectures helpful for interviews ??

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

    Thanks alot

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

    when arrival time is 5 at that time P1 and P5 conflict to execution, according to criteria, low number give higher priority so, after 5 sec P5 will be there. I'm right ?

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

      This is non preemptive.

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

    how if Turn Around Time is higher than the Burst Time. Is that possible, Mrs. Jenny?

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

    //Code for Non-Primitive Priority Scheduling
    #include
    int jtime=100;
    int counter;
    int n;
    int at[20],bt[20],ct[20],pt[20],sts[20];
    void process_Ps()
    {
    int index; // variable for storing the index of least priority process
    int p=100; // just setting the priority to 100 just for comparison , no matter in value 100, you can give any number

    //checks for all process from index 0 to n
    for(int i=0;i

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

    mam!! change your youtube channel's name to "Jenny's lectures" it's cleaner!!! lots of love from Nepal.

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

    Very nice topic I understand priority scheduling thanks mam but I am a doubt this topic please tell me non preemptive mai lesser the no. Preemptive mai kya h

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

    Hayeeeee...... kaha thi aap, hum apko itne dino se dhoondh rhe h....

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

    In second one p7 has the highest priority, so why did you take p5?

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

    Mam when two processes have same priority and same arrival time then what we do?

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

      My guess only. If two process arrival time is same then consider according to process priority and if two process priority are also same then consider the earliest process number.

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

    How to calculate if arrival time is not given?

  • @PraneshGangarapu-hx6ok
    @PraneshGangarapu-hx6ok Год назад

    In priority sheduling 5,3,4,2 he mentioned higher number has high. Priority so please tell me which is allocated frist 5 or 2

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

    What if we have same priority and same arrival time?

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

    Can be first process arrive at time more than 0??

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

    Mam how to solve when the arrival time of any process in not from zero??

  • @MustafaKhan-uu9ox
    @MustafaKhan-uu9ox 5 лет назад

    Thanks mam

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

    Mam if dispatch latency is given then how it's going to affect avg. Waiting time

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

      Dispatch latency of 1 m/s is given so it going to add up in each process waiting time??

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

    Thank youuu :))

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

    that smile at 1:51 :D

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

    In p3 is 16

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

    Tnx