+ 10

What is context switching ?

sololearn

1st Aug 2017, 10:44 AM
GAWEN STEASY
GAWEN STEASY - avatar
6 Respostas
+ 6
when a process is executing and an higher priority interrupt is came in the system then the system first execute higher priority interrupt first then execute the previous process this is called as context switching eg when a person is bake cake for his son and the son of that person has got struck by something which cause the person(father) to first just go to his son and take care of him and when he is okay then again start the work to make cake I think this will help you
1st Aug 2017, 10:56 AM
GAWEN STEASY
GAWEN STEASY - avatar
+ 3
I know this much about this-"When the processor change it's attention from lets say process_1 to process_2 then the time spent is called context switching" hope it helps!!
1st Aug 2017, 10:52 AM
Kirtesh Suthar
Kirtesh Suthar - avatar
+ 3
in real life example.. when you open an app lets say whatsapp and then you pressed home button and then opened the Sololearn app.. then you would notice that .. if you receive message in whatsapp then you will be notified.. which means the app is still running but most probably not the whole app is running.. it is just one process of the app.. or you can say just a thread is active.. and context is defined as a content of registers of a cpu.. therefore the apps run parallel in cpu..
1st Aug 2017, 10:56 AM
Мг. Кнап🌠
Мг. Кнап🌠 - avatar
+ 2
context switch is the process of storing the state of a process or thread, so that it can be restored and resume execution at a later point. 💞😊
13th Aug 2020, 7:34 AM
Sakshi💕
Sakshi💕 - avatar