answersLogoWhite

0

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

16y ago

What else can I help you with?

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 actions of a context switch if the new context is already loaded into one of the register sets.?

If the new context is already loaded into one of the register sets, a context switch involves simply changing the pointer to the register set in use. This is a faster operation as no actual data needs to be moved between memory and registers, resulting in a quicker context switch process.


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.


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.


Difference between TPN switch and TP and N switch?

no difference whatsoever


Why context switch must be atomic?

Context switch must be atomic to ensure that the state of the system remains consistent during the switch. This is important because a context switch involves saving the state of the current process and loading the state of the next process. If the switch is not atomic, it could lead to data corruption or inconsistencies in the system, resulting in unpredictable behavior.


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.


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.


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


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.


What is the difference between load break switch and ht switch fuse unit?

Both are same...