Context Switch

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

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

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

    I really liked the example related to MOTHER.

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

      universally relatable

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

      same here

    • @NomiSNotFound
      @NomiSNotFound 8 หลายเดือนก่อน +3

      Sad truth: Batman can never get the real meaning of the context switching.

    • @bytecode5834
      @bytecode5834 7 วันที่ผ่านมา +1

      I was about to write about it

  • @hoangminhchau2187
    @hoangminhchau2187 ปีที่แล้ว +12

    When a process is running and being interrupted by another higher-priority process, the context of the current running process is saved into its PCB.
    The task of saving the state of the current running process and restore the state of another process is called context switching.
    Context switching time is an overhead, because the system does nothing usefull while switching (no process in execution)
    Context switching time varies from machine to machine. It depends on the memory speed. Typical speed is about few ms.

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

    I loved how you introduced helping the mother as a higher priority task. It really is. Thanks for the wonderful course on OS, friend. :)

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

    So, context switching is: when a process is being run by the processor, another process of higher priority called interrupt interrupts the process. In this case the state of prucess being interrupted is saved and CPU is assigned to processor. Once that interrupted is handled and executed, the preciously running process that was suspended is again resmed by the processor. This is called context switching.

    • @MDASIF-wo7ck
      @MDASIF-wo7ck 3 ปีที่แล้ว +1

      Thanks

    • @AnandSharma-lt8wq
      @AnandSharma-lt8wq 3 ปีที่แล้ว +17

      Or the process time quantum is finished
      Or it goes for I/O
      Or it terminates due to error or just completes the instruction
      Then also context switch happens

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

      Thanks!

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

      Fantastic 🤩

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

      Nice explaination ❤

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

    I have exam tomorrow and sir your explanation made me learn OS easily.i thought these all are tough but it much easier after listening you.thank u so much sir🙂

  • @sanjusaini4960
    @sanjusaini4960 6 ปีที่แล้ว +37

    just like always,you are serving a good content and examples to help students understang the things thoroughly
    thanku NESO ACADEMY

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

    perfect and I really admire your lecture, I really regret seeing this video just before the final but, this is great to know this channel!

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

    I am so grateful for these videos, thank you forever!

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

    Those are great metaphors that you use in your videos! Really helpful in memorizing the main aspects. Thank you for the great content!

  • @bapanghosh166
    @bapanghosh166 6 ปีที่แล้ว

    Neso academy is the one and only channel where we can learn cmsa properly

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

    Since the last video was on process scheduling, I decided to schedule the process of watching this video next. When I clicked on it, however, I noticed that I went through a context switch by going from one task to another.

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

    The example is very vivid! Bro you really did a great job. Plz keep going.

  • @ManzoorHussain-gz1vk
    @ManzoorHussain-gz1vk 4 ปีที่แล้ว +2

    Thank you, Sir, your videos makes me love computer science.

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

    first time got the clarity of what exactly context switching is.

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

    Very very very much thank you @NesoAcademy. Your teaching skills are brilliant. Keep doing, it's a very good thing.

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

    Thank you so much neso academy for neat & clean explanation about operating system concepts..

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

    Excellent analogy for Context Switch and Nice explanation.

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

    I am just watching 3rd video and I think I am understanding everything about context switching process scheduling

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

    All my doubts are cleared. Thanks a lot Sir. It is really very useful. Thanku

  • @01.abhishekkumar33
    @01.abhishekkumar33 3 ปีที่แล้ว +2

    Sir each and every word you speak has some deep meaning in it ,loving the journey of operating system with you sir

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

      Hey bro/sis, I'm really confused with the difference between state saving and restoring, aren't them the same ?, please help me understanding it

  • @Surajrawat-xx1gw
    @Surajrawat-xx1gw 4 ปีที่แล้ว +2

    I am very thankful to u man u done a great job every single word you said is understandable so again a big thnku from my side i wish u will get all the happiness u want

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

    The examples you give are really awesome 🙌

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

    The real life example you just described here.. 👏👏

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

    Really helpful...I liked the real life example which you gave in this video..plz cover all concepts of operating system...tq..

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

    great video, very well explained. It would be great if you can share an index that lists all the topics that will be covered in OS playlist.

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

    Love the way Of Explanation ❤️‍🔥

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

    Good explanation with suitable example... It's so simple and clear.. Thank you...

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

    Great videos, even greater playlist. Really well done, thanks

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

    amazing , makes it so much easier to understand..

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

    Thank you so much sir for understanding such topics and the real life application are more helpful to understand

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

    Great video! Tip, watch in 1.5 x speed

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

    Thank u very much..... Ur teaching skill is very good....

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

    After watching 20th video i have more confidence in English cause i seeing this video in 2x but sill it's Cristal clear ❤️❤️❤️❤️❤️

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

    Amazing Class! Thank you from Brazil. Your channel is excellent guys, thank you :D

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

    Thank you for this unambiguous explanation...It cleared my doubt

  • @bytecode5834
    @bytecode5834 7 วันที่ผ่านมา

    Thanks for the gift!

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

    Thanks for everything Sir. 😇❣️

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

    Thanks man, i have an exam on thursday and you helped me a lot. Thank you !

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

    What an example given 🔥

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

    LOVED YOUR CONTENT BROTHER IT HELPED ME A LOT DONT KNOW WAY HOW TO THANK YOU BUT THANK YOU BRO 😍🙏🙏🙏

  • @wasima.4599
    @wasima.4599 ปีที่แล้ว

    always helpful especially in exam time..🥰

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

    Nice example sir

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

    I LOVE NESO ACADEMY.....

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

    Thanks a lot ...really helped...much appreciated 😊

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

    Great introduction. thanks!

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

    Very well and concisely explained!

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

    Really nice and easy explanation thank you ❤

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

    great video ..plz add notes for rest of the modules too

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

    Thanks alot sir best explanation ever💗

  • @Adam-gp3ij
    @Adam-gp3ij 4 ปีที่แล้ว

    Best explanations ever! thanks a lot

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

    Thank you so much dear teacher

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

    thank you a lot, it is all perfectly clear now.

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

    thanks for the information

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

    Using your example the PCB is the book mark ?

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

    Thank You Sir...

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

    Nice way explained like it :)

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

      Hey bro/sis, I'm really confused with the difference between state saving and restoring, aren't them the same ?, please help me understanding it

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

    dude ur the best thank u fr

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

    10 minutes video and you could explained it in 4 minutes oh my god

  • @DanielMarin-tutorials
    @DanielMarin-tutorials 6 หลายเดือนก่อน

    But this context switching happens per Processing Unit, right? when you say that the processor is not doing anything while switching you mean the specific processing unit (in case there is multithreading), right?

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

    Great brother.

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

    I have a doubt. So, a few lectures back (in System Call Lecture) we learnt that the switching done by a process to switch from User mode to Kernel mode or kernel mode to User mode is known as context switching. And in this lecture we learnt that when a running process is interrupted by a higher priority process then, the state of process being interrupted is saved. Once that interruption is handled, the preciously running process is again resumed. This is called context switching. How the two context switching different? Or are these same?

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

      same doubt did you got the ans

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

      @@snehagupta1044 no. I think they don't reply to old videos anymore.

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

      @@meenalphartiyal1548 yeah may be but by surfing over the net I think the current definition is correct not the previous one

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

      Yeah you were right guys I just checked that video and foud a top liked comment which seems everone agree with, The comment says that "switching from kernel to user and vice versa is known as mode shifting not context switch. Context switch is the one which happens between 2 processes " .

  • @albertd.bangura3794
    @albertd.bangura3794 3 ปีที่แล้ว

    You are great! Thank you.

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

    Grazie millionie!

  • @melvyntie8391
    @melvyntie8391 6 ปีที่แล้ว

    Great video. Thank you SOOOO MUCHHH

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

    Thank you sir!!!

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

    Thankyou sir

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

    context switches are a major factor is systems

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

    my mother interrupted me while running this process of this video

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

    Hey guys I'm really confused with the difference between state saving and restoring, aren't them the same ?

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

      No, they are not same

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

      State saving here implies saving the state of previously executing process in PCB so that when the cpu come after completing the execution of the interrupting process it continue the execution of the process from the point where it resumes.
      While state restore referes to restoring the state of the new interrupting task so that cpu starts its execution.
      Hope it helps!

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

    If helping mother is another process, then is there any switch in core of the computer or same core is being used

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

    when you say "in the previous lecture we talked about something" can you please put the link in the description for the previous video

    • @melaniemolifie2534
      @melaniemolifie2534 5 ปีที่แล้ว

      And/or a link to the next consecutive video. I have to search for days 😵

    • @ale-hl8pg
      @ale-hl8pg 5 ปีที่แล้ว

      ...was the playlist not there a month ago?

    • @RK003
      @RK003 5 ปีที่แล้ว

      Playlist is available on the channel main page. Once check

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

    thanks

  • @shaziyasultana4373
    @shaziyasultana4373 5 ปีที่แล้ว

    Sir upload the videos on computing environment plz

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

    But in one of the previous video he said context switching is about changing from user mode to kernel mode and vice versa......in this video he contradicted it...i don't know someone explain please

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

      It's mode shifting

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

    i'm pretty sure that you have a mistake regarding the typical speeds of context switches. i belive they are in the range of microsec (not millisec).

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

  • @Arjun69
    @Arjun69 5 ปีที่แล้ว

    Thanku so much.

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

    Sir please start electromagnetism.please

  • @fayyazmujahid7236
    @fayyazmujahid7236 5 ปีที่แล้ว

    Thanks a lot ..

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

    1hr lec in clg vs 10 min here 😅

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

    Content and context switch is same?

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

    Thank uu a lot
    ❤❤❤❤❤

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

    is nobody going to mention the use of comic sans in this video?

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

    holy cow

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

      holy cow

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

      do you code

    • @epos.nephilo
      @epos.nephilo หลายเดือนก่อน

      holy cow

  • @herrogamer2606
    @herrogamer2606 6 ปีที่แล้ว

    Awesome!!!

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

    who is responsible for doing context swichting?

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

      You do it in the kernel

  • @RaHuL-sb6uo
    @RaHuL-sb6uo 6 ปีที่แล้ว +15

    1st view, 1st like, 1st comment 😉

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

      wr

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

    Mom:YuanMeng!
    Me:A?
    5 secs silence
    Me:MA?
    ME:MAAAAAA?

  • @f.j.bradman1761
    @f.j.bradman1761 5 ปีที่แล้ว

    😃💖t'hanks for sharing

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

    Greattt !!!

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

    process quantums are itself in milliseconds don't think context-switch will take milliseconds

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

    I wonder why it is not called process switch.

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

      Thankyou so much sir... 😇

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

      You are switching "context", you go from ring 3 to ring 0 or the other way around

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

    Present sir

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

    So my mom calling me to clean toilet 🚻 is more important then reading 📚 books ????

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

    ningning liu

  • @dev.rahulgurjar
    @dev.rahulgurjar ปีที่แล้ว

    👍👍👍

  • @ridoyasaduzzaman5904
    @ridoyasaduzzaman5904 5 ปีที่แล้ว

    i hope i get a son like you

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

    Mother calling is never an interrupt. How dare u 😂

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

      You are just jumping for something you did not get the content.

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

    HAHHAHAHA good explanation ahahhaahha