Context Switch

Sdílet
Vložit
  • čas přidán 24. 07. 2018
  • Operating System: Context Switch
    Topics discussed:
    Context Switching: This lecture explains about context switching, when does it happen and what is its purpose in an Operating System.
    Follow Neso Academy on Instagram: @nesoacademy
    Contribute: www.nesoacademy.org/donate
    Memberships: bit.ly/2U7YSPI
    Books: www.nesoacademy.org/recommende...
    Website ► www.nesoacademy.org/
    Forum ► forum.nesoacademy.org/
    Facebook ► goo.gl/Nt0PmB
    Twitter ► / nesoacademy
    Music:
    Axol x Alex Skrindo - You [NCS Release]
    #OperatingSystemByNeso #os #OperatingSystem #ContextSwitch

Komentáře • 134

  • @kifkifa56
    @kifkifa56 Před 4 lety +136

    I really liked the example related to MOTHER.

  • @gamezine8374
    @gamezine8374 Před 2 lety +84

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

  • @sanjusaini4960
    @sanjusaini4960 Před 6 lety +37

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

  • @amarioForester
    @amarioForester Před 4 lety +23

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

  • @quratraja7391
    @quratraja7391 Před 4 lety +125

    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.

  • @hoangminhchau2187
    @hoangminhchau2187 Před rokem +8

    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.

  • @gayathrikodakandla2258
    @gayathrikodakandla2258 Před 3 lety +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🙂

  • @omnikharge6505
    @omnikharge6505 Před 4 lety +3

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

  • @payrollpauly69
    @payrollpauly69 Před 3 lety +4

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

  • @startrek3779
    @startrek3779 Před 4 lety +2

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

  • @jongpac2
    @jongpac2 Před 7 měsíci +1

    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!

  • @arzookothariya7595
    @arzookothariya7595 Před 5 lety +2

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

  • @bapanghosh166
    @bapanghosh166 Před 5 lety

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

  • @gaurav45750
    @gaurav45750 Před 6 lety +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.

  • @intfamous4001
    @intfamous4001 Před 2 lety +2

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

  • @Surajrawat-xx1gw
    @Surajrawat-xx1gw Před 4 lety +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

  • @ManzoorHussain-gz1vk
    @ManzoorHussain-gz1vk Před 4 lety +2

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

  • @01.abhishekkumar33
    @01.abhishekkumar33 Před 2 lety +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 Před 2 lety

      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

  • @ram_pande8039
    @ram_pande8039 Před 3 lety +1

    The examples you give are really awesome 🙌

  • @Anakanueva
    @Anakanueva Před rokem

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

  • @jyotipundir3794
    @jyotipundir3794 Před 4 lety +2

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

  • @hyderabadperlmongers3654
    @hyderabadperlmongers3654 Před 11 měsíci

    Excellent analogy for Context Switch and Nice explanation.

  • @balbahadursingh7671
    @balbahadursingh7671 Před 5 lety +2

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

  • @SamanWithanage
    @SamanWithanage Před 4 lety

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

  • @ChiLL0uTx
    @ChiLL0uTx Před 4 lety

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

  • @reeteshtiwari5257
    @reeteshtiwari5257 Před 3 lety

    Very well and concisely explained!

  • @santoshnarwad3528
    @santoshnarwad3528 Před rokem

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

  • @Adam-gp3ij
    @Adam-gp3ij Před 4 lety

    Best explanations ever! thanks a lot

  • @allanonyango6447
    @allanonyango6447 Před 4 lety

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

  • @pratikdharam3445
    @pratikdharam3445 Před rokem +1

    Love the way Of Explanation ❤️‍🔥

  • @fkaspow
    @fkaspow Před 4 lety

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

  • @gunjanjarawat8304
    @gunjanjarawat8304 Před rokem

    amazing , makes it so much easier to understand..

  • @laharibasu9731
    @laharibasu9731 Před 3 lety +1

    Thanks for everything Sir. 😇❣️

  • @tadiwanashemuzite9568
    @tadiwanashemuzite9568 Před 2 lety +1

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

  • @melvyntie8391
    @melvyntie8391 Před 5 lety

    Great video. Thank you SOOOO MUCHHH

  • @farahmohamed2104
    @farahmohamed2104 Před 9 měsíci

    thanks for the information

  • @romann0ob751
    @romann0ob751 Před 2 lety

    Really nice and easy explanation thank you ❤

  • @anmolkhajuria2445
    @anmolkhajuria2445 Před rokem

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

  • @AmiTechAndSoftware
    @AmiTechAndSoftware Před 8 měsíci

    Great introduction. thanks!

  • @Joshi_0821
    @Joshi_0821 Před 3 měsíci

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

  • @snehalraynade1008
    @snehalraynade1008 Před 2 lety

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

  • @zahid_9217
    @zahid_9217 Před 4 lety

    Thank you so much dear teacher

  • @reyy9220
    @reyy9220 Před 5 měsíci

    dude ur the best thank u fr

  • @wasima.4599
    @wasima.4599 Před rokem

    always helpful especially in exam time..🥰

  • @kajalmishra6895
    @kajalmishra6895 Před 5 lety +1

    Thank You Sir...

  • @shabanarashid5827
    @shabanarashid5827 Před rokem

    Thanks alot sir best explanation ever💗

  • @randomcat5262
    @randomcat5262 Před 2 lety +2

    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.

  • @ayushiyadav1
    @ayushiyadav1 Před 2 měsíci

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

  • @priyanshvatsal9791
    @priyanshvatsal9791 Před rokem

    What an example given 🔥

  • @ajaysukumar5323
    @ajaysukumar5323 Před 5 lety +1

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

  • @123gregery
    @123gregery Před měsícem

    Nice example sir

  • @albertd.bangura3794
    @albertd.bangura3794 Před 2 lety

    You are great! Thank you.

  • @bikdigdaddy
    @bikdigdaddy Před 8 měsíci

    thank you.

  • @owaissadiq9050
    @owaissadiq9050 Před 4 lety

    Great brother.

  • @lishasaini6657
    @lishasaini6657 Před 2 lety

    I LOVE NESO ACADEMY.....

  • @khoa12tvuang49
    @khoa12tvuang49 Před 2 lety

    Thank you sir!!!

  • @isaiasyoyo
    @isaiasyoyo Před rokem

    Grazie millionie!

  • @Arjun69
    @Arjun69 Před 5 lety

    Thanku so much.

  • @Shunya_Advait
    @Shunya_Advait Před 2 lety

    Thank You 😃

  • @dhanushsivajaya1356
    @dhanushsivajaya1356 Před 3 lety

    Thankyou sir

  • @panchmishali3225
    @panchmishali3225 Před 2 lety

    Nice way explained like it :)

    • @underratededits35
      @underratededits35 Před 2 lety

      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

  • @syedhabeebuddin101
    @syedhabeebuddin101 Před 3 lety

    thanks

  • @clashingtv2527
    @clashingtv2527 Před rokem

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

  • @herrogamer2606
    @herrogamer2606 Před 6 lety

    Awesome!!!

  • @amalsakkoumi1392
    @amalsakkoumi1392 Před 3 lety

    Thank uu a lot
    ❤❤❤❤❤

  • @tinashechinamasa6684
    @tinashechinamasa6684 Před rokem

    Using your example the PCB is the book mark ?

  • @f.j.bradman1761
    @f.j.bradman1761 Před 5 lety

    😃💖t'hanks for sharing

  • @DanielMarin-tutorials
    @DanielMarin-tutorials Před 2 měsíci

    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?

  • @rakshitjambavalikar7101

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

  • @samarthtandale9121
    @samarthtandale9121 Před 11 měsíci

    Great video! Tip, watch in 1.5 x speed

  • @shaziyasultana4373
    @shaziyasultana4373 Před 4 lety

    Sir upload the videos on computing environment plz

  • @akashverma429
    @akashverma429 Před 4 lety

    Greattt !!!

  • @sakilhabibsardar4476
    @sakilhabibsardar4476 Před 6 lety +1

    Sir please start electromagnetism.please

  • @RaHuL-sb6uo
    @RaHuL-sb6uo Před 6 lety +15

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

  • @veereshsanadi9802
    @veereshsanadi9802 Před 2 lety

    Content and context switch is same?

  • @akindu8367
    @akindu8367 Před 2 lety

  • @hebaibrahim3010
    @hebaibrahim3010 Před 4 lety +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 Před 4 lety

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

    • @ale-hl8pg
      @ale-hl8pg Před 4 lety

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

    • @RK003
      @RK003 Před 4 lety

      Playlist is available on the channel main page. Once check

  • @shadid2010
    @shadid2010 Před 3 lety +1

    my mother interrupted me while running this process of this video

  • @agnoia3236
    @agnoia3236 Před 6 měsíci

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

  • @balajiannamalai5902
    @balajiannamalai5902 Před 4 lety +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

  • @DigitalPaintingRecords
    @DigitalPaintingRecords Před 3 měsíci

    context switches are a major factor is systems

  • @shalip
    @shalip Před 3 lety

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

  • @codechannel2145
    @codechannel2145 Před rokem +1

    1hr lec in clg vs 10 min here 😅

  • @_mr.lala_patel_
    @_mr.lala_patel_ Před 3 lety

    Present sir

  • @underratededits35
    @underratededits35 Před 2 lety +1

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

    • @mrobertson937
      @mrobertson937 Před rokem

      No, they are not same

    • @elearno1580
      @elearno1580 Před rokem

      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!

  • @OwenValentine
    @OwenValentine Před 4 lety +1

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

  • @charlesAcmen
    @charlesAcmen Před 2 měsíci

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

  • @shanthiyasekar7317
    @shanthiyasekar7317 Před 2 lety

    who is responsible for doing context swichting?

    • @_Omni
      @_Omni Před rokem

      You do it in the kernel

  • @ContextSwitch
    @ContextSwitch Před rokem +1

    holy cow

  • @dev.rahulgurjar
    @dev.rahulgurjar Před rokem

    👍👍👍

  • @meenalphartiyal1548
    @meenalphartiyal1548 Před 3 lety +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 Před 2 lety

      same doubt did you got the ans

    • @meenalphartiyal1548
      @meenalphartiyal1548 Před 2 lety +1

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

    • @snehagupta1044
      @snehagupta1044 Před 2 lety

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

    • @underratededits35
      @underratededits35 Před 2 lety +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 " .

  • @ridoyasaduzzaman5904
    @ridoyasaduzzaman5904 Před 5 lety

    i hope i get a son like you

  • @charan775
    @charan775 Před 2 lety

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

  • @randomcat5262
    @randomcat5262 Před 2 lety

    ningning liu

  • @gavin8535
    @gavin8535 Před 3 lety

    I wonder why it is not called process switch.

    • @sukanyakumari0153
      @sukanyakumari0153 Před 3 lety

      Thankyou so much sir... 😇

    • @_Omni
      @_Omni Před rokem

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

  • @saidattnaik1967
    @saidattnaik1967 Před 2 lety

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

  • @punittripathi5461
    @punittripathi5461 Před 4 lety

    Mother calling is never an interrupt. How dare u 😂

    • @jaredomariba3800
      @jaredomariba3800 Před 3 lety

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

  • @bennetttan8535
    @bennetttan8535 Před 3 lety

    HAHHAHAHA good explanation ahahhaahha

  • @zes3813
    @zes3813 Před 3 lety

    wrrr