L-2.8: Pre-emptive Priority Scheduling Algorithm with Example | Operating System

  Рет қаралды 1,648,299

Gate Smashers

Gate Smashers

Күн бұрын

Пікірлер: 603
@ShoaibxDofficial
@ShoaibxDofficial 3 жыл бұрын
*Apke explanation itni easy h k theory parhne ki zaroorat nh bus numericals dekho or theory khud bna lo thanks sir*
@afrosefatima2592
@afrosefatima2592 3 жыл бұрын
Exactly
@ankitkumaryadav562
@ankitkumaryadav562 3 жыл бұрын
Tu PUBG wala hai kya
@ShoaibxDofficial
@ShoaibxDofficial 3 жыл бұрын
@@ankitkumaryadav562 filhal 8 ball study k baad PUBG start in channel
@imranwahid9871
@imranwahid9871 3 жыл бұрын
Sahi bola vro!.
@huriarauf189
@huriarauf189 3 жыл бұрын
Yes but mai first time kar rehi ho confusion ho rehi ha
@ahmadkhanniazi
@ahmadkhanniazi 4 жыл бұрын
Here I have an exam after just 2 hours, and you're the one saving my life lol. You're the MVP dude!
@GateSmashers
@GateSmashers 4 жыл бұрын
Wish you all the very best
@mahmood7093
@mahmood7093 4 жыл бұрын
Bhai results aagaye? Kaisa rha exam
@raviashwin1157
@raviashwin1157 4 жыл бұрын
@@mahmood7093 Bhai 5 months ho gaye ab tak to college walo ne agle semester k exam bhi le liye hoge
@prajyotkumar9644
@prajyotkumar9644 2 жыл бұрын
@@raviashwin1157 abhi tak to passout bhi ho gaya hoga
@MrAditya123-yt
@MrAditya123-yt 2 жыл бұрын
@@prajyotkumar9644 abhi tak toh shadi ho gayi hogi 🙆🏻‍♂️
@abhirajchatterjee
@abhirajchatterjee 3 жыл бұрын
I have completed entire OS syllabus in just a few hours thanks a lot sir. Really appreciate your efforts.
@akarshgangwar1111
@akarshgangwar1111 3 жыл бұрын
my whole class is following your channel ,such a wonderful content and explanation.
@DeVs2803
@DeVs2803 10 ай бұрын
Sirji you are amazing. you litrally save me 2 times. 1st time by our all scheduling algorithm when i was in diploma and in engineering now . thank you
@AnuragKharade
@AnuragKharade 10 ай бұрын
Bhot mahan insaan hai sir aap kyu ki teacher scheduling to sikha rahi lekin samaj me sirf apki vajah se aa raha hai!!
@JennyslecturesCSIT
@JennyslecturesCSIT 5 жыл бұрын
Great explanation
@hackingworld3340
@hackingworld3340 Жыл бұрын
Aapne inse jyada subscribers banaa rakhe hai...
@Free_Dude
@Free_Dude 11 ай бұрын
Jyada kia hota hai ??? It's zayada 😂😂
@amanjamadar4748
@amanjamadar4748 10 ай бұрын
Are mam Aap bhi😅❤😂
@OkayManish09
@OkayManish09 5 жыл бұрын
I continuously watched your whole videos on operating system and i can't explain how much i liked them. For these type of lectures i would definitely skip my computer class because you can explain better than her. Thanks a lot, and the credit for my marks in tomorrows exam will also go to you👏👏 Really enjoyed watching it.
@KojitHullenavaru
@KojitHullenavaru 2 жыл бұрын
same response😅
@wassup102
@wassup102 2 жыл бұрын
same heree
@glommyaliva2349
@glommyaliva2349 Жыл бұрын
Hm idhar sab atte he wohi time pe 😂😂😂
@085_RahulMishra
@085_RahulMishra Жыл бұрын
@@glommyaliva2349 ham bhi aagye bhai kal exam
@glommyaliva2349
@glommyaliva2349 Жыл бұрын
@@085_RahulMishra 🤣🤣🤭
@leeganghalley6477
@leeganghalley6477 3 жыл бұрын
Sir... You have made computer science easy... Love from arunachal pradesh
@GateSmashers
@GateSmashers 3 жыл бұрын
Wow..
@shivamjha6580
@shivamjha6580 3 жыл бұрын
You r the one, who is truly GEM for the Computer Science students 🔥🙏
@itsjamal96
@itsjamal96 6 жыл бұрын
If the same example solved by the same method with mode: non-preemptive then it would be more clear and effective to be learned and understood. My suggestion is that add a link where the same question is being solved through this priority algorithm with mode: non-preemptive to differentiate between them clearly. And it would be easy to identify the effectiveness of preemption during the execution. The rest of the question is explained very well and easy to understand. Thank you
@adnanaijaz1240
@adnanaijaz1240 8 ай бұрын
Very good Keep up the good work
@artisted9910
@artisted9910 3 жыл бұрын
College sucks Online hi btech krlena tha Jb tk aap jaise saviors ho We r blessed
@bibihajiram.s6218
@bibihajiram.s6218 8 ай бұрын
Your explanation was crystal clear , Thanks a lot . Also not me watching this before 2 h of exam
@sadafshahbaz8753
@sadafshahbaz8753 5 жыл бұрын
Sir you’re doing an excellent job. Keep helping students. May God help you too!
@GateSmashers
@GateSmashers 5 жыл бұрын
thank you so much..lots of blessings
@kaligupta3280
@kaligupta3280 2 жыл бұрын
Thankew So much Sir....really aapke sabhi videos bhut helpful h......
@tehreemkausar6520
@tehreemkausar6520 10 ай бұрын
Thankyou so so much!!! May you be blessed forvever, ameen.
@muraripandit5706
@muraripandit5706 4 жыл бұрын
After watching this video my all doubt had cleared regarding algorithm. Your teaching style is fabulous. Thanks Sir
@GateSmashers
@GateSmashers 4 жыл бұрын
Thank you
@mmhshazin6155
@mmhshazin6155 2 жыл бұрын
I am from bangladesh .You are really boss in understanding the concept clearly
@nasimfatima6598
@nasimfatima6598 4 жыл бұрын
God blessed you sir. Thank you so much after long gap since 2011 I learn OS conceptually for job test. When I was student os was very dry subject for me.
@jameskamgar
@jameskamgar 5 жыл бұрын
Final papers night, and you are my special guest thanks a world.💗
@GateSmashers
@GateSmashers 5 жыл бұрын
All the Best
@mianadnanfakhar.6968
@mianadnanfakhar.6968 5 жыл бұрын
Nice
@rehaansofi789
@rehaansofi789 5 жыл бұрын
you are awesome sir There is hardly teachers like you out there love from Kashmir
@jackgamer133
@jackgamer133 2 жыл бұрын
Hats of to you sir ❤️! Hamara sir na 4 weeks laga dia isko seekhatay seekhatay apna sirf 7-8 min ma smjha dia . You r great ! Now I am ready to get full marks in algorithm after watching all videos of yours ❤️💯
@cst_23_nazmeengulfrosh
@cst_23_nazmeengulfrosh 2 жыл бұрын
thank you sir for being the best teacher ever...the way you teach is amazing ...best channel for students like me ...thanks a lot sir😇 ..very helpful
@monikachaudhary1488
@monikachaudhary1488 6 жыл бұрын
Ur method of teaching superbbbbb h sir
@yashfaawan971
@yashfaawan971 Жыл бұрын
Very nyc explanation sir thans alot .. bhhht videos dekhi hn but smj srf apki ae h ❤
@dhaneshn5304
@dhaneshn5304 8 ай бұрын
Very helpful sir❤
@GauravKumar-dy5ch
@GauravKumar-dy5ch 5 жыл бұрын
i have spend 6 months behind operating system but i got clear concept tonight before examination thank you so much sir
@prashantsingh8735
@prashantsingh8735 2 жыл бұрын
Your explanation is simple, easy to understand and can be used to solve any complex problem. Just flawless . No need to go any where .because you are here . thank you sir.
@dilawarhusain3211
@dilawarhusain3211 2 жыл бұрын
Allah AP ko ajar dy you are genius
@malharparikh7481
@malharparikh7481 9 ай бұрын
Sir your way of explanation is out of league.Great work👍
@72_shivamthakur89
@72_shivamthakur89 5 жыл бұрын
I binge watched entire OS playlist in one go great work sir B-)
@geetanjalihitech8752
@geetanjalihitech8752 4 жыл бұрын
Wow Amazing sir..... Salute to you sir.... Great explanation 🙏🙏
@bwdroonayt6081
@bwdroonayt6081 Жыл бұрын
My exam is just half hour away and ur are saving me😂
@dishantgupta7130
@dishantgupta7130 6 жыл бұрын
Ek no. Video bhai itne detail mai kisi nai ni smjha rakha
@GateSmashers
@GateSmashers 6 жыл бұрын
Thanks
@gamingdas396
@gamingdas396 2 жыл бұрын
You are a great teacher indeed for the Computer Science students👍🏻
@syedsuhaibzia1558
@syedsuhaibzia1558 6 жыл бұрын
you are the best ... i wish you are our teacher
@mehakamirofficial1370
@mehakamirofficial1370 4 жыл бұрын
Best lectures, easy to understand. Thanks a lot, you clear my concepts of scheduling. Your lectures are just amazing. Continue teaching. God bless you. Bundle of thanks.
@spiritualcuisine3261
@spiritualcuisine3261 5 жыл бұрын
Great Teaching Method MashAllah impressive
@shreyanshgupta6884
@shreyanshgupta6884 9 ай бұрын
ek ap hi jo algorithm based type topic ko itna acha samjhate hai apko enigneering valo bacho ki dua legegi
@hamzahanif2599
@hamzahanif2599 4 жыл бұрын
you are the best teacher as compared to other youtube teacher your lectures are very helpful for me>and your teaching style is extraordinary better
@Faizan-bi8ft
@Faizan-bi8ft 3 жыл бұрын
I'm a big fan of you sir... Because ur teaching way is good & great.. 😊
@Jyoti_Trivedi
@Jyoti_Trivedi 4 жыл бұрын
Thank you sir....apne sari cpu algo bht hi ache se smjhayi hui hai.... God bless you.... May you live long 🤗✨🙏
@madanbhandari8655
@madanbhandari8655 3 жыл бұрын
Kyaa baat Sir ji ♥️♥️ kati sajilo sanga bujhaunu vako ❤️❤️ From Nepal 💖💖
@GateSmashers
@GateSmashers 3 жыл бұрын
All the best
@kaustya
@kaustya 2 жыл бұрын
Tommorow is my exam & by ur explanation skills i can solve any priority scheduling algorithm 🤝💥.
@swatikrishna4221
@swatikrishna4221 6 жыл бұрын
I satisfy this .good job sir ,carry on
@payalsonawane2404
@payalsonawane2404 4 жыл бұрын
sir your teaching is go good...............I can't even explain in words...............thanks a lot..... :)
@prathyushhebbar1583
@prathyushhebbar1583 5 жыл бұрын
Really, very good explanation !!!
@DrAmitabhaYadav
@DrAmitabhaYadav 5 жыл бұрын
Consider a pre-emptive priority based scheduling algorithm based on dynamically changing priority. Larger priority number implies higher priority. When the process is waiting for CPU in the ready queue (but not yet started execution), its priority changes at a rate a = 2. When it starts running, its priority changes at a rate b = 1. All the processes are assigned priority value 0 when they enter ready queue. Assume that the following processes want to execute: Process ID Arrival Time Service Time P1 0 4 P2 1 1 P3 2 2 P4 3 1 The time quantum q = 1. When two processes want to join ready queue simultaneously, the process which has not executed recently is given priority. The finish time of processes P1, P2, P3 and P4 will respectively be
@aimankhanofficial05
@aimankhanofficial05 5 ай бұрын
Great Explanation
@jaguargaming1410
@jaguargaming1410 Жыл бұрын
Sir u explain every topic in such a way that hard topics becomes easy to understand ❤❤❤❤
@shaikgousepashi9924
@shaikgousepashi9924 10 ай бұрын
👌SUPER EXPLAINATION SIR
@HKSWAG_99
@HKSWAG_99 10 ай бұрын
You are Amazing Sir,You Made Difficult Concepts Easy Better Than Paid Courses 🙏
@naidiles7360
@naidiles7360 4 жыл бұрын
Its very simple and easy to understand,thq sir
@KashifKhan-tz8py
@KashifKhan-tz8py 2 жыл бұрын
Thank you so much for this pretty explanation.👌👌👌👌👌
@nomanijaz6135
@nomanijaz6135 6 жыл бұрын
I have never seen such a great way of teaching
@sanjoymaity6446
@sanjoymaity6446 2 жыл бұрын
One of my famous Hero like sir👍👍👍love you sir
@shivanibhardwaj1639
@shivanibhardwaj1639 4 жыл бұрын
Thanku sir .. Mera concept clear ho gya
@harshpenshanwar5543
@harshpenshanwar5543 Жыл бұрын
Great teaching Sir 👍🏻👍🏻
@shaundabre5552
@shaundabre5552 2 жыл бұрын
Absolute genius vedio 🙏
@praneshnanoskar6353
@praneshnanoskar6353 5 жыл бұрын
Sir...nice video..the way of your teaching is very nice..I understood very well..
@shallubajaj951
@shallubajaj951 5 жыл бұрын
Consider a pre-emptive priority based scheduling algorithm based on dynamically changing priority. Larger priority number implies higher priority. When the process is waiting for CPU in the ready queue (but not yet started execution), its priority changes at a rate a = 2. When it starts running, its priority changes at a rate b = 1. All the processes are assigned priority value 0 when they enter ready queue. Assume that the following processes want to execute: Process Arrival Service ID Time Time P1 0 4 P2 1 1 P3 2 2 P4 3 1 The time quantum q = 1. When two processes want to join ready queue simultaneously, the process which has not executed recently is given priority. The finish time of processes P1, P2, P3 are..Plz make a video solving this question..
@ITPower786
@ITPower786 2 жыл бұрын
Tysm Sir ,U R The Best teacher for online classes 💫💫
@GoogleUser-nx3wp
@GoogleUser-nx3wp 2 жыл бұрын
Best OS Lectures Ever due to gate smasher i can keep up my part time job as well as university study
@dheerajvasisth8609
@dheerajvasisth8609 3 жыл бұрын
This video is very helpful to me
@dhworld9428
@dhworld9428 7 ай бұрын
The way if explaining is awesome😊
@nextleveltech267
@nextleveltech267 Жыл бұрын
Thank you so much.❤️ Understood well 👍
@advaittare6831
@advaittare6831 5 жыл бұрын
Best explanation! Thank you so much sir!!!
@MBindu-kc2nj
@MBindu-kc2nj 3 жыл бұрын
You just nailed it
@vishukohli1109
@vishukohli1109 5 жыл бұрын
you are the best teacher....I saw your AI lecture videos they helped a lot in my exam..........hope OS exam also go well....Thanx a lot sir..
@Bhaiam233
@Bhaiam233 4 жыл бұрын
Thank you sir for this type of help😊
@ramit8776
@ramit8776 3 жыл бұрын
Sir u deserve 5 million😇😇😇
@TinuMon-v6u
@TinuMon-v6u Жыл бұрын
//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; }
@ankitbansal2303
@ankitbansal2303 6 жыл бұрын
Great Job sir. Thanks Alot
@Rajatsharma-x4g
@Rajatsharma-x4g Жыл бұрын
One of the best teacher in India ☺☺☺☺☺☺
@rajarshimandal3235
@rajarshimandal3235 5 жыл бұрын
Once again a excellent video
@nikunjrathod6176
@nikunjrathod6176 4 жыл бұрын
Wonderful series sir, 💯💯
@sajansekhu8785
@sajansekhu8785 4 жыл бұрын
Thnkk u so much sir jii..bahut achhii revisions ho rhi h sir aapki vjah se...
@mahmood7093
@mahmood7093 4 жыл бұрын
Best teacher ever
@kamyagupta4030
@kamyagupta4030 Жыл бұрын
Thank you so much ❤
@maheshlal2061
@maheshlal2061 4 жыл бұрын
Your teaching method can make hard subject easy🙏🙏🙏🙏🙏🙏
@evolvedgeek7362
@evolvedgeek7362 3 жыл бұрын
Wonderful content! Life Saver!
@Jackson_Ai
@Jackson_Ai 6 жыл бұрын
Great Work for students,All videos is useful for us. Love from Pakistan
@akku2527
@akku2527 Жыл бұрын
you are great sir how beautifully you make understand the topic its a genious mind
@yashkamerkar8396
@yashkamerkar8396 2 жыл бұрын
Brilliant!
@upamapal1884
@upamapal1884 Жыл бұрын
A very good evening sir....I am a student of computer science..... I'm taking the preparation of UGC NET.... Really I totally forgot this topic ...but when I check your playlist...ek chutki se doubt clear hoy Gaya....... amazing sir.....Thank you so much....
@mahmood7093
@mahmood7093 4 жыл бұрын
When I was in 3rd year you were my saviour in this subject, and others too.. Thanks a ton Guruji..🙏🙏🙏
@mohdumar9741
@mohdumar9741 6 жыл бұрын
Srr Aap explain bhaut acha krte hnn thanku 1oo much
@bhaveshkumar6842
@bhaveshkumar6842 2 жыл бұрын
Great explanation as always! ❤
@liaqatalikhan9788
@liaqatalikhan9788 4 жыл бұрын
wow sir ,.thanks a lot sir....i watch your videos and lectures and i can't explain that how much i lke you and your lectures ..again thanks a lot sir
@hamzailyas7617
@hamzailyas7617 Жыл бұрын
I'm in a fifth semester due to this guy 🗿🗿
@man.deep_kaur
@man.deep_kaur 5 ай бұрын
Arre yeh toh mere 3rd sem mei subject hai😂
@chandankr.1459
@chandankr.1459 2 жыл бұрын
You are the Wonderful Mentor 😍😍😍
@Shr.pravat
@Shr.pravat 3 жыл бұрын
The best teacher ever on Earth 🌎
@priyankajangidpj9100
@priyankajangidpj9100 4 жыл бұрын
Sir cs aapse achaa koi pdha hi nhi skta
@siddantapupoturaju5589
@siddantapupoturaju5589 Жыл бұрын
Hi sir, your way of explanation is excellent sir👌
@jainashivani6432
@jainashivani6432 4 ай бұрын
In priority preemptive scheduling, the process with the lower numerical value for priority is considered to have the higher priority. Thus, a process with priority 4 has a higher priority than a process with priority 5. Example: Process A: Priority 5 Process B: Priority 4 Since Process B has a priority of 4 (which is numerically lower), it has a higher priority than Process A, which has a priority of 5.
@Sam-fk3sq
@Sam-fk3sq 2 жыл бұрын
he is the best teacher!! 😁
@ashmakhan819
@ashmakhan819 6 ай бұрын
Tomorrow is my final exam. And your videos says me a great best of luck. You are just like a bundle of clear concepts 😊❤️
@riddhimanchatterjee4195
@riddhimanchatterjee4195 6 жыл бұрын
Thanks a lot for helping Varun sir
@pragatinayak9573
@pragatinayak9573 9 ай бұрын
Always the bestest🔥❤️
L-2.7: Round Robin(RR) CPU Scheduling Algorithm with  Example
16:23
Gate Smashers
Рет қаралды 2,8 МЛН
Quando A Diferença De Altura É Muito Grande 😲😂
00:12
Mari Maria
Рет қаралды 39 МЛН
Sigma Kid Mistake #funny #sigma
00:17
CRAZY GREAPA
Рет қаралды 27 МЛН
How Strong Is Tape?
00:24
Stokes Twins
Рет қаралды 24 МЛН
L-2.3: First Come First Serve(FCFS) CPU Scheduling Algorithm with Example
10:34
Priority Scheduling (Solved Problem 1)
15:58
Neso Academy
Рет қаралды 327 М.
CPU Scheduling Algorithms (FCFS, SJF, Round Robin) | Learn Coding
25:48
Sunil Grover's HILARIOUS Mimicry of SRK in Jawan 🤣 #TGIKS
2:18
Netflix India
Рет қаралды 994 М.