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

15y ago
This answer is:
User Avatar

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.


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.


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 TPN switch and TP and N switch?

no difference whatsoever


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 context switching and interrupt handler?

they're not totally indistinguishable, they overlap as one is needed for the other. context switching is the process of storing and restoring the state of a process. when a interrupt handler interrupts a program, the context switch is enacted. the current programs status is saved and then once the program interrupt is finished, then program interupted is restored. the program interrupting is the computers way of responding to outside stimuli. in simple terms it saves the programs status, deals with what ever the interrupt is, then restores the programs status (what ever said program happens to be).


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

Both are same...


What is the difference between D-link switch and a normal cisco switches?

Technology wise there is no such difference.