|
INTERVIEW QUESTIONS
PROGRAMMING LANGUAGES
WINDOWS PROGRAMING
DETAILS
Question: What is Context Switch?
Answer: Switching the CPU to another process requires saving the state of the old process and loading the saved state for the new process. This task is known as a context switch. Context-switch time is pure overhead, because the system does no useful work while switching. Its speed varies from machine to machine, depending on the memory speed, the number of registers which must be copied, the existed of special instructions(such as a single instruction to load or store all registers).
|
|
|
Category |
Windows Programing Interview Questions & Answers -
Exam Mode /
Learning Mode
|
Rating |
(0.3) By 8396 users |
Added on |
9/22/2014 |
Views |
70127 |
Rate it! |
|
|
Question:
What is Context Switch?
Answer:
Switching the CPU to another process requires saving the state of the old process and loading the saved state for the new process. This task is known as a context switch. Context-switch time is pure overhead, because the system does no useful work while switching. Its speed varies from machine to machine, depending on the memory speed, the number of registers which must be copied, the existed of special instructions(such as a single instruction to load or store all registers). Source: CoolInterview.com
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
- There should not be any Spelling Mistakes.
- There should not be any Gramatical Errors.
- Answers must not contain any bad words.
- Answers should not be the repeat of same answer, already approved.
- Answer should be complete in itself.
|
|
Related Questions |
View Answer |
|
What is the difference between unix and windows?
|
View Answer
|
|
What is Dispatcher?
|
View Answer
|
|
What are Dynamic Loading, Dynamic Linking and Overlays?
|
View Answer
|
|
What is the main component of operating system?
|
View Answer
|
|
What is active directory? How it works? What is dns? How it works? What is dhcp? How it works? What is ias? How it works?
|
View Answer
|
|
On a system with paging, a process cannot access memory that it does not own why? How could the operating system allow access to other memory? Why should it or should it not?
|
View Answer
|
|
Why are page sizes always powers of 2?
|
View Answer
|
|
What is the difference between Hard and Soft real-time systems?
|
View Answer
|
|
What are the major differences between windows XP and Windows 2000 operating systems?
|
View Answer
|
|
Explain Segmentation with paging?
|
View Answer
|
|
Explain briefly about, processor, assembler, compiler, loader, linker and the functions executed by them?
|
View Answer
|
|
Describe the actions taken by thread library to context switch between user level threads?
|
View Answer
|
|
Difference between Logical and Physical Address Space?
|
View Answer
|
|
If a system has 128 MB RAM and 1 GB hard Disk, and a process decides to use its fully allotted Virtual Memory 2^32 - 2GB = 2 GB, how is it practically possible?. But this works in all machines. How?
|
View Answer
|
|
What is starvation and aging?
|
View Answer
|
|
Give a non-computer example of preemptive and non-preemptive scheduling?
|
View Answer
|
|
Define Demand Paging, Page fault interrupt, and Trashing?
|
View Answer
|
|
What is the cause of thrashing? How does the system detect thrashing? Once it detects thrashing, what can the system do to eliminate this problem?
|
View Answer
|
|
Why thread is called as a lightweight process?
|
View Answer
|
|
Compare Linux credit based algorithm with other scheduling algorithms?
|
View Answer
|