Question

In: Computer Science

Describe the actions taken by a kernel to context-switch between processes.

Describe the actions taken by a kernel to context-switch between processes.

Solutions

Expert Solution

The action taken by a kernel to context switch between processes are --

  • To switch CPU to other process, it has requirement of performing a state save of the current process and state restore of different process. this task is called as context switching.
  • When the context switching ocuur the kernel switching context of old process in PCB and loads saved context of new process scheduled to run.
  • context switch time is pare overhead because system do not have any useful work during that time.
  • It depend on the processor which have large number of register so it do not need to unload old PCB because it has enough space to store frequently used processes PCB.
  • The Operating system need to save the PC and user stack pointer for the process which is currently executing process, in response to clock interrupt and transfer control to kernel clock interrupt handler.
  • The clock interrupt handler which save rest of register and other machines state of floating pointer register in process PCB.
  • then the operating system identify schedule and determine next process to be execute.
  • Then the operating system retrives the state of next process from PCB and and restore the register.

Related Solutions

2) Describe the actions taken by the federal govern actions taken by the federal government that...
2) Describe the actions taken by the federal govern actions taken by the federal government that led to westward expansion during the 1800s *need facts/actions* 1) Discuss the impact of westward expansion on the United States i have to answer this two questions in a essay need help.
Describe the differences between high-context and low-context cultures
Describe the differences between high-context and low-context cultures
In operating system; ‘What happens in a context switch?
In operating system; ‘What happens in a context switch?
What actions can be taken to lower air pollution emissions? Consider actions that can be taken...
What actions can be taken to lower air pollution emissions? Consider actions that can be taken at the individual, community, and government levels.
Household Management In the following situations, describe the most appropriate actions or responses to be taken...
Household Management In the following situations, describe the most appropriate actions or responses to be taken by the Personal Support Worker and explain why this is correct. Your answer should reflect knowledge of effective communication skills, the extent and limitations of your role, and an understanding of the client’s total needs. (4 marks each) 1. You are assigned to help Mrs. Jones with her laundry and vacuuming. When you try to do Mrs. Jones’ laundry, she tells you you’ve used...
Describe Apple Incs, internal and external stakeholders. In the description, include the actions taken by the...
Describe Apple Incs, internal and external stakeholders. In the description, include the actions taken by the stakeholders to date to influence the political process and advocate for the business’s interests.
What is the relationship between what they call a ‘switch’ and a ‘gene’? Describe using the...
What is the relationship between what they call a ‘switch’ and a ‘gene’? Describe using the following terms: promoter, transcription factor, enhancer, activator, transcription, translation. ORF (Open Reading Frame)
1 In Linux, when a timer expires, there is a context switch so that the CPU...
1 In Linux, when a timer expires, there is a context switch so that the CPU scheduler can run. False True 2 The operating system keeps track of CPU usage for all processes. False True 3 A system call that does not invoke the CPU scheduler executes in the same context as the process that makes the call. False True 4 A ____ synchronizes access to memory from devices that want to access it. In UNIX, the system call to...
200 words What topic important to Public Health? Describe some actions taken by the government to...
200 words What topic important to Public Health? Describe some actions taken by the government to ensure that people are safer and healthier today than we were 100 years ago. #2 - Identify a health issue in your community. What are some risk factors associated with that problem? Suggest a possible intervention that the community may take to ameliorate the problem? #3 - Give an example of a measure that would improve public health but might limit some people's freedom....
Create and describe your own sustainability indicator. What actions, processes or things would you measure to...
Create and describe your own sustainability indicator. What actions, processes or things would you measure to quantify your indicator?
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT