answersLogoWhite

0


Best Answer

when ever an interrupt occurs, it saves the context of the program being executed & sets the PC to the starting address of the interrupt handling program. now after servicing the interrupt if the same process is resumed which was being interrupted then we will say a context switch has occurred.

But imagine after servicing the interrupt if a new process is to be executed then some more work is required, that is it has to save some more information from the PCB to keep reference to resume its execution and we say process switch has occurred..!!

User Avatar

Wiki User

โˆ™ 2008-08-31 08:18:15
This answer is:
User Avatar
Study guides

What is a programming language

What does DOS stand for

What is a software that is distributed for free

What is application software

โžก๏ธ
See all cards
3.79
โ˜†โ˜…โ˜†โ˜…โ˜†โ˜…โ˜†โ˜…โ˜†โ˜…
33 Reviews

Add your answer:

Earn +20 pts
Q: What is the difference between context switch and process switch?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is the difference between process switch and mode switch?

Process switch is switch the process state between the status like read, blocked ,suspend. Mode switch is the switch the process privilege between the mode like use mode, kernel mode. Generally a mode switch is considered less expensive compared to a process switch.


Describe the difference between mode switch and process switch?

Process switch is switch the process state between the status like read, blocked ,suspend. Mode switch is the switch the process privilege between the mode like use mode, kernel mode. Generally a mode switch is considered less expensive compared to a process switch.


What is the difference between a mode switch and a process switch?

A mode switch is switching between privileges , i.e setting a process to have kernel mode or user mode. Switching a process is switching what is currently being executed upon


The actions taken by a kernel to context switch bet user levl thread?

When a context switch occurs, the kernel saves the context of the old process into its Program Control Block and loads the saved context of the new process scheduled to run.


In computing what is the purpose of a context switch?

Context switching allows for a computer to multitask. It can suspend one process in order to switch over and run another process. The first process can be brought back up by suspending the second one.


Difference between context switching and schedulling?

Scheduling has to do with how the job scheduler decides which task will have the CPU and for how long. This is the technique of multi-tasking; the appearance of running multiple processes at the same time (when they really aren't). Context switching occurs when a process needs to do something in a privileged way, such as requiring communication with another hardware device. When the process is typically running it is in user mode, which is a non-privileged mode of operation. It has to context switch into kernel (privileged) mode to do things, then switch back. The main difference between the two is that context switches happen in a non-predictive manner in the same program/process, and job scheduling is predictable (to a point). Then again, they serve different needs of the Operating System, as well.


What is mode switch and process switch?

Process switch is switch the process state between the status like read, blocked ,suspend. Mode switch is the switch the process privilege between the mode like use mode, kernel mode. Generally a mode switch is considered less expensive compared to a process switch.


What is the difference between context switching and mode switching?

Context means ,in terms of computers, the status of various general purpose registers having some process specific data values and even some other structures dependent on computer hardware,i.e. PCB etc. Now what context switch means ,""switching from one status of registers set to another status of registers set."" This context may be of a process or thread etc. Now when we are talking about any type of context switching,,it means we are requesting the KERNEL to save the current context anywhere,and fetch the next context for us.. It requires a mode switch between user mode to kernel mode, so that required switching may be performed in right order.... Isn't it simple ,,or what.


How can you minimize idle time in context switch?

If the process that gets the control can be put into the register (its kept in cache though) means less time to fetch and have a context switch. Any way the context switching time isn't a big time delay.


Difference between tandem switch and long distance switch?

go to www.howstuffworks.com


What is the difference between proxy switch sensor?

What_is_the_difference_between_proxy_switch_sensor


What is the difference between layer3 switch and router?

No difference, they're the same thing.

People also asked